标签:tor ids pareto map stat object int static oid
public static String getAsciiSort(Map<String, Object> map) {
List<Entry<String, Object>> infoIds = new ArrayList<Entry<String, Object>>(map.entrySet());
// 对所有传入参数按照字段名的 ASCII 码从小到大排序(字典序)
Collections.sort(infoIds, new Comparator<Entry<String, Object>>() {
public int compare(Map.Entry<String, Object> o1, Map.Entry<String, Object> o2) {
return ((String) o1.getKey()).compareToIgnoreCase((String) o2.getKey());
}
});
}
java map里面进行ASCII 码从小到大排序(字典序)
标签:tor ids pareto map stat object int static oid
原文地址:https://www.cnblogs.com/qq1141100952com/p/13177714.html