Fix for Trav13. Now the sorting works for distance. Sorty for Rating
also implemented.