added sort by distance example