Sort question with distance
Question database