public static int compareTierNames ( String a , String b ) { int aValue = getTierRankValue ( a ) ; int bValue = getTierRankValue ( b ) ; if ( aValue == bValue ) { return a . compareTo ( b ) ; } return aValue - bValue ; }
Compares two tier names according to their rank values .