code: private int compareIdentifiers(String ident1, String ident2) {
          if (isInt(ident1) && isInt(ident2)) {
              return Integer.parseInt(ident1) - Integer.parseInt(ident2);
          } else {
              return ident1.compareTo(ident2);
          }
      }
docs: Compares two identifiers.
  
  @param ident1 the first identifier
  @param ident2 the second identifier
  @return integer result of comparison compatible with
  the {@code Comparable.compareTo} method