Ok, so I'm looking for a preexisting gadget, or to make a new gadget, that does the following:

-Takes location entries from a spreadsheet
-Allows for input of set location
-Analyzes distance from spreadsheet location entry to set location
-Sorts data entries by distance from set location.

This gadget would be put in a google doc spreadsheet or into an excel spreadsheet.

Anybody have any suggestions?