X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/178501de61fc551c4589cd3944447944cfddd1c6..3604d0d913ca99acd48f2f6d852e5971da8d8bae:/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']; }