mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
_sortTwoEntry in class.LSsearch.php become case insensitive
This commit is contained in:
parent
ebf26c4591
commit
e8c0205810
1 changed files with 2 additions and 7 deletions
|
@ -1110,13 +1110,8 @@ class LSsearch {
|
|||
|
||||
if ($va == $vb) return 0;
|
||||
|
||||
$val = array($va,$vb);
|
||||
sort($val);
|
||||
|
||||
if ($val[0]==$va)
|
||||
return 1*$dir;
|
||||
|
||||
return -1*$dir;
|
||||
$val = strcoll(strtolower($va), strtolower($vb));
|
||||
return $val*$dir;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue