order results by distance then time