From 1194c47c5dfe17e188e4d2c3e1766755346ce02f Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 19 Apr 2015 21:12:26 +0200 Subject: [PATCH] ksort on commands array to avoid converting to numerical array --- lib/command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/command.php b/lib/command.php index 94e95f0ee9..830b97ee23 100644 --- a/lib/command.php +++ b/lib/command.php @@ -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"; }