fixed sorting

This commit is contained in:
Roland Gruber 2006-05-17 10:33:50 +00:00
parent 79eadc3730
commit a58280baa5
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 strnatcmp($a[$sort][0], $b[$sort][0]);
return strnatcasecmp($a[$sort][0], $b[$sort][0]);
}
else {
return strnatcmp($a[$sort], $b[$sort]);
return strnatcasecmp($a[$sort], $b[$sort]);
}
}