search sorts alphabetically and by distance