X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/178501de61fc551c4589cd3944447944cfddd1c6..ff36d7d8df16d1a1d94656bda7b8b7d4b9422a3a:/lib/lib.php?ds=sidebyside 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']; }