Implemented sorting by distance from specific location