Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba6c946

Browse files
committed
Sort commands like a human would do
1 parent f04b1bd commit ba6c946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ private function findAlternatives($name, $collection)
10191019
}
10201020

10211021
$alternatives = array_filter($alternatives, function ($lev) use ($threshold) { return $lev < 2 * $threshold; });
1022-
ksort($alternatives);
1022+
ksort($alternatives, SORT_NATURAL | SORT_FLAG_CASE);
10231023

10241024
return array_keys($alternatives);
10251025
}

0 commit comments

Comments
 (0)