Sort hits by distance.