private static class SortByDistance implements
Comparator<TimedLocalSearchResult> {
public int compare(TimedLocalSearchResult o1, TimedLocalSearchResult o2) {
TimedPlaceBean tp1 = o1.getTimedPlace();
TimedPlaceBean tp2 = o2.getTimedPlace();
int t1 = tp1.getTime();
int t2 = tp2.getTime();
return t1 == t2 ? 0 : (t1 < t2 ? -1 : 1);
}