Skip to content
Browse files

Sort commands alphabetically (help table)

  • Loading branch information...
1 parent 58e7625 commit 59140b105011b8c43213f2d78a823cd2c19ad34c @janodvarko janodvarko committed Oct 11, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 extension/content/firebug/console/commandLineHelp.js
View
5 extension/content/firebug/console/commandLineHelp.js
@@ -41,6 +41,7 @@ var HelpCaption = domplate(
)
});
+// The table UI should be based on tableRep
var HelpTable = domplate(
{
tag:
@@ -183,6 +184,10 @@ var CommandLineHelp = domplate(
})
}
+ // Sort commands
+ commands.sort(function sortName(a, b) { return a.name > b.name ? 1 : -1; });
+
+ // Generate table
HelpEntry.tag.insertRows({commands: commands}, tBody);
return row;

0 comments on commit 59140b1

Please sign in to comment.
Something went wrong with that request. Please try again.