function bySearchRank($a, $b)
{
- if ($a['iSearchRank'] == $b['iSearchRank']) return 0;
+ if ($a['iSearchRank'] == $b['iSearchRank'])
+ return strlen($a['sOperator']) + strlen($a['sHouseNumber']) - strlen($b['sOperator']) - strlen($b['sHouseNumber']);
return ($a['iSearchRank'] < $b['iSearchRank']?-1:1);
}