集合排序列表

List<Map.Entry<String, String>> infoIds = new ArrayList<Map.Entry<String, String>>(
bizObj.entrySet());

Collections.sort(infoIds, new Comparator<Map.Entry<String, String>>() {
public int compare(Map.Entry<String, String> o1,
Map.Entry<String, String> o2) {
return (o1.getKey()).toString().compareTo(o2.getKey());
}
});

你可能感兴趣的:(集合排序列表)