I have a content type with latitude and longitude coordinate fields. i have a view that is displayed on each page with this content type, and a google map plotting the location. Is there any way to sort a view using the distance between points?
distance=( ( current_page_lat - view_item_lat) + ( current_page_lng - view_item_lng ) )