mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +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;
|
if ($va == $vb) return 0;
|
||||||
|
|
||||||
$val = array($va,$vb);
|
$val = strcoll(strtolower($va), strtolower($vb));
|
||||||
sort($val);
|
return $val*$dir;
|
||||||
|
|
||||||
if ($val[0]==$va)
|
|
||||||
return 1*$dir;
|
|
||||||
|
|
||||||
return -1*$dir;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue