private int compareIdentifiers ( String ident1 , String ident2 ) { if ( isInt ( ident1 ) && isInt ( ident2 ) ) { return Integer . parseInt ( ident1 ) - Integer . parseInt ( ident2 ) ; } else { return ident1 . compareTo ( ident2 ) ; } }
Compares two identifiers .