finish the offline location sorting: change several code in the LocationCamparator, delete class LocationSorting