_sortTwoEntry in class.LSsearch.php become case insensitive
authorPierre Arnaud <parnaud@easter-eggs.com>
Thu, 14 Aug 2014 09:53:19 +0000 (11:53 +0200)
committerPierre Arnaud <parnaud@easter-eggs.com>
Thu, 14 Aug 2014 09:53:19 +0000 (11:53 +0200)
public_html/includes/class/class.LSsearch.php

index dc990f1..cecacf2 100644 (file)
@@ -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;
   }
   
   /**