node page, tags section: sort tags on tagname in the dropdown selector
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 3 Jan 2011 15:15:39 +0000 (16:15 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 3 Jan 2011 15:15:39 +0000 (16:15 +0100)
planetlab/nodes/node.php

index 7e02522..cfce37e 100644 (file)
@@ -428,7 +428,7 @@ if ( $local_peer ) {
     // set tag area
     $table->row_start();
     // get list of tag names in the node/* category    
-    $all_tags= $api->GetTagTypes( array ("category"=>"node*"), array("tagname","tag_type_id"));
+    $all_tags= $api->GetTagTypes( array ("category"=>"node*","-SORT"=>"tagname"), array("tagname","tag_type_id"));
     // xxx cannot use onchange=submit() - would need to somehow pass action name 
     function tag_selector ($tag) { return array("display"=>$tag['tagname'],"value"=>$tag['tag_type_id']); }
     $selector=array_map("tag_selector",$all_tags);