Commit 787546b8 authored by haemmer's avatar haemmer
Browse files

Added fix for #3108

parent efa150b1
......@@ -959,14 +959,14 @@ function sortUsingTypeIndexAndName($a, $b){
global $language;
if ($a['Type'] != $b['Type']){
return strcmp($a['Type'], $b['Type']);
return strcasecmp($a['Type'], $b['Type']);
} elseif (isset($a['Index']) && isset($b['Index']) && $a['Index'] != $b['Index']){
return strcmp($a['Index'], $b['Index']);
return strcasecmp($a['Index'], $b['Index']);
} else {
// Sort using locale names
$localNameB = (isset($a[$language]['Name'])) ? $a[$language]['Name'] : $a['Name'];
$localNameA = (isset($b[$language]['Name'])) ? $b[$language]['Name'] : $b['Name'];
return strcmp($localNameB, $localNameA);
return strcasecmp($localNameB, $localNameA);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment