added sort by distance