Commit 5c799b58 by huzhenkun

修改字符比较器

parent 53481fb6
...@@ -69,6 +69,9 @@ public class StringComparator implements Comparator<String> { ...@@ -69,6 +69,9 @@ public class StringComparator implements Comparator<String> {
return hexStr1.compareTo(hexStr2); return hexStr1.compareTo(hexStr2);
} }
} }
if(str1.length() < str2.length()){
return -1;
}
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment