Sort results on nearest distance