Implemented sorting of facilties returned by getFacilities().

Did it by just treating latitude and longitude as X and Y and
doing a simple point-distance formula. Did some basic tests and
it seems to be accurate.