X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/244cb0e98c42375505b00f8d736dc5eabe408db7..9610664fc566a912915f4a4f5abcf8981c2f9f4b:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index c4fbca30..fcd22066 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -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']; }