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:
2019-10-03 09:51:02 +00:00
parent ceeafcb476
commit bf88a97476

View File

@@ -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)