Merge remote-tracking branch 'upstream/master'
[quix0rs-gnu-social.git] / lib / command.php
index 94e95f0ee993c96db83188d32226caefa08e3d32..830b97ee239e9d8ba693efb3aa7f3ebf1b5cde4a 100644 (file)
@@ -932,7 +932,7 @@ class HelpCommand extends Command
         // Give plugins a chance to add or override...
         Event::handle('HelpCommandMessages', array($this, &$commands));
 
-        sort($commands);
+        ksort($commands);
         foreach ($commands as $command => $help) {
             $out[] = "$command - $help";
         }