Skip to content

Commit d6ca804

Browse files
authored
Fix #4055. Sort inside namespaces in list command. (#4057)
* Sort inside namespaces in list command. * fix spaces. * indentation.
1 parent a61a5f8 commit d6ca804

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Commands/help/ListCommands.php

+5
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ public static function categorize($all, $separator = ':')
214214
}
215215

216216
ksort($namespaced);
217+
218+
// Sort inside namespaces.
219+
foreach ($namespaced as $key => &$items) {
220+
ksort($items);
221+
}
217222
return $namespaced;
218223
}
219224
}

0 commit comments

Comments
 (0)