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