Sort commands like a human would do
This commit is contained in:
parent
f04b1bd72f
commit
ba6c9464ea
@ -1019,7 +1019,7 @@ class Application
|
||||
}
|
||||
|
||||
$alternatives = array_filter($alternatives, function ($lev) use ($threshold) { return $lev < 2 * $threshold; });
|
||||
ksort($alternatives);
|
||||
ksort($alternatives, SORT_NATURAL | SORT_FLAG_CASE);
|
||||
|
||||
return array_keys($alternatives);
|
||||
}
|
||||
|
Reference in New Issue
Block a user