]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/lib.php
Merge pull request #2016 from lonvia/locale-address-russia
[nominatim.git] / lib / lib.php
index c4fbca308636e60e0cd0e59a27fc63eb517b7597..fcd220667bcdede296654b8db9d80a827f9dab8e 100644 (file)
@@ -55,7 +55,7 @@ function byImportance($a, $b)
     if ($a['importance'] != $b['importance'])
         return ($a['importance'] > $b['importance']?-1:1);
 
-    return ($a['foundorder'] < $b['foundorder']?-1:1);
+    return $a['foundorder'] <=> $b['foundorder'];
 }