X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/cc6b90b4908c7eeee59879d2f9a5ad7532a2efee..2148d81474728c4d59100f8d281ca0dfbe5e7ac2:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index 8dc2570c..d36e6472 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -40,6 +40,9 @@ function byImportance($a, $b) { +/* + if ($a['importance'] != $b['importance']) + return ($a['importance'] > $b['importance']?-1:1); if ($a['aPointPolygon']['numfeatures'] != $b['aPointPolygon']['numfeatures']) return ($a['aPointPolygon']['numfeatures'] > $b['aPointPolygon']['numfeatures']?-1:1); if ($a['aPointPolygon']['area'] != $b['aPointPolygon']['area']) @@ -48,8 +51,7 @@ // return ($a['levenshtein'] < $b['levenshtein']?-1:1); if ($a['rank_search'] != $b['rank_search']) return ($a['rank_search'] < $b['rank_search']?-1:1); - if ($a['importance'] != $b['importance']) - return ($a['importance'] < $b['importance']?-1:1); +*/ return ($a['foundorder'] < $b['foundorder']?-1:1); }