X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5cc1946dfcde07d3fa42b09e966bed247bdb50a1..78a29b5a876d0c7d4c8b9ccab9f45b15780b4a22:/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); }