}
// sort the map according to the sort method
if (!sortMethod.equals("none")) {
if (sortMethod.equals("timeASC")) {
Collections.sort(routeInfos, new RouteInfoTimeAscComparator());
} else if (sortMethod.equals("timeDESC")) {
Collections.sort(routeInfos, new RouteInfoTimeDescComparator());
} else if (sortMethod.equals("fromASC")) {
Collections.sort(routeInfos, new RouteInfoFromAscComparator());
} else if (sortMethod.equals("fromDESC")) {