console : sort the propositions when multiple entries are available
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5568 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -355,6 +355,10 @@ class console
|
||||
$maxlen = max ($maxlen, mb_strlen ($key));
|
||||
}
|
||||
$maxlen = $maxlen + 5;
|
||||
if ($isAssoc)
|
||||
ksort ($completeArr, SORT_NATURAL);
|
||||
else
|
||||
sort ($completeArr, SORT_NATURAL);
|
||||
foreach ($completeArr as $key => $val)
|
||||
{
|
||||
if ($isAssoc)
|
||||
|
||||
Reference in New Issue
Block a user