public static List sortKeyInMap(Map map,Locale locale){
  List sorted=Collections.EMPTY_LIST;
  if ((map != null) && !map.isEmpty()) {
    sorted=sortItems(map.keySet(),locale);
  }
  return sorted;
}

public static List sortKeyInMap ( Map map , Locale locale ) { List sorted = Collections . EMPTY_LIST ; if ( ( map != null ) && ! map . isEmpty ( ) ) { sorted = sortItems ( map . keySet ( ) , locale ) ; } return sorted ; }
sorts keys in a map .
