operator/src/main/java/oracle/kubernetes/utils/OperatorUtils.java
public static int compareSortingStrings(String str1, String str2) {
    if (str1 == null || str2 == null) {
      if (str2 != null) {
        return -1;
      } else if (str1 != null) {
        return 1;
      }
      return 0;
    }
    return getSortingString(str1).compareTo(getSortingString(str2));
  }
/**
   * Compare the given 2 Strings using the sorted name as returned by {@link #getSortingString(String)}.
   *
   * @param str1 First string for comparison
   * @param str2 Second string for comparison
   * @return a negative integer, zero, or a positive integer as the sorting name of str1 
   *     is less than, equal to, or greater than the sorting name of str2.
   */
Compare the given 2 Strings using the sorted name as returned by  #getSortingString(String).
@param str1 First string for comparison
@param str2 Second string for comparison
@return a negative integer, zero, or a positive integer as the sorting name of str1
is less than, equal to, or greater than the sorting name of str2.
Compare the given 2 Strings using the sorted name as returned by #getSortingString ( String ) . @param str1 First string for comparison @param str2 Second string for comparison @return a negative integer zero or a positive integer as the sorting name of str1 is less than equal to or greater than the sorting name of str2 .
public static int compareSortingStrings(String str1, String str2) {
    if (str1 == null || str2 == null) {
      if (str2 != null) {
        return -1;
      } else if (str1 != null) {
        return 1;
      }
      return 0;
    }
    return getSortingString(str1).compareTo(getSortingString(str2));
  }
public static int compareSortingStrings ( String str1 , String str2 ) { if ( str1 == null || str2 == null ) { if ( str2 != null ) { return - 1 ; } else if ( str1 != null ) { return 1 ; } return 0 ; } return getSortingString ( str1 ) . compareTo ( getSortingString ( str2 ) ) ; }
Compare the given 2 Strings using the sorted name as returned by {@link #getSortingString(String)}.
Compare the given 2 Strings using the sorted name as returned by { @link #getSortingString ( String ) } .