X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ccca38f22d25624a420316419a697f893780d6fc..9fb413a126ad7472ff96a4b78d5693ca132f5d81:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index 50cf3dc4..2134e1a4 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -101,7 +101,7 @@ function bySearchRank($a, $b) { if ($a['iSearchRank'] == $b['iSearchRank']) - return strlen($a['sOperator']) + strlen($a['sHouseNumber']) - strlen($b['sOperator']) - strlen($b['sHouseNumber']); + return strlen($a['sOperator']) + strlen($a['sHouseNumber']) - strlen($b['sOperator']) - strlen($b['sHouseNumber']); return ($a['iSearchRank'] < $b['iSearchRank']?-1:1); }