List sortList=new ArrayList(map_toSort.entrySet());
Collections.sort(sortList, new Comparator<Map.Entry<String,Integer>>(){
public int compare(Map.Entry<String,Integer> o1, Map.Entry<String,Integer> o2){
return (o2.getValue()-o1.getValue());
}
});