比较两个排序字符串的大小 返回负数表示rank1 < rank2,0表示相等,正数表示rank1 > rank2
static int compare(String rank1, String rank2) { return rank1.compareTo(rank2); }