Collections.sort(innerTrackList, new Comparator<Map>() {
public int compare(Map o1, Map o2) {
String map1value =o1.get("time")+"";
String map2value =o2.get("time")+"";
return map1value.compareTo(map2value);
}
});
Collections.sort(innerTrackList2, new Comparator<Map>() {
public int compare(Map o1, Map o2) {
String map1value =o1.get("time")+"";
String map2value =o2.get("time")+"";
return map1value.compareTo(map2value);
}
});