Sort GP by Distance