X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1c7da4318298a790e63c5648de57b3b804426731..00b1521a6361a5bf57f7d60c0b04f720cd146629:/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']; }