fixed sorting
This commit is contained in:
parent
79eadc3730
commit
a58280baa5
|
@ -252,10 +252,10 @@ class lamList {
|
||||||
if (!$sort) $sort = strtolower($attr_array[0]);
|
if (!$sort) $sort = strtolower($attr_array[0]);
|
||||||
if ($sort != "dn") {
|
if ($sort != "dn") {
|
||||||
// sort by first attribute with name $sort
|
// sort by first attribute with name $sort
|
||||||
return strnatcmp($a[$sort][0], $b[$sort][0]);
|
return strnatcasecmp($a[$sort][0], $b[$sort][0]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return strnatcmp($a[$sort], $b[$sort]);
|
return strnatcasecmp($a[$sort], $b[$sort]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue