changed to natural sorting

This commit is contained in:
Roland Gruber 2006-02-11 13:29:27 +00:00
parent 3c0a8ab72b
commit 70171bea52
1 changed files with 2 additions and 2 deletions

View File

@ -252,10 +252,10 @@ class lamList {
if (!$sort) $sort = strtolower($attr_array[0]);
if ($sort != "dn") {
// sort by first attribute with name $sort
return strcmp($a[$sort][0], $b[$sort][0]);
return strnatcmp($a[$sort][0], $b[$sort][0]);
}
else {
return strcmp($a[$sort], $b[$sort]);
return strnatcmp($a[$sort], $b[$sort]);
}
}