comefrom: <qiyuangong>937_Reorder_Log_Files_1.java
code: public String[] reorderLogFiles(String[] logs) {
          Arrays.sort(logs, (log1, log2) -> {
              String[] split1 = log1.split(" ", 2);
              String[] split2 = log2.split(" ", 2);
              boolean isDigit1 = Character.isDigit(split1[1].charAt(0));
              boolean isDigit2 = Character.isDigit(split2[1].charAt(0));
              if (!isDigit1 && !isDigit2) {
                  int cmp = split1[1].compareTo(split2[1]);
                  if (cmp != 0) return cmp;
                  return split1[0].compareTo(split2[0]);
              }
              return isDigit1 ? (isDigit2 ? 0 : 1) : -1;
          });
          return logs;
      }
masked: public String [ ] var_0 ( String [ ] var_1 ) {
    Arrays . sort ( var_1 , ( var_2 , var_3 ) -> {
      String [ ] var_4 = var_2 . split ( " " , 2 ) ;
      String [ ] var_5 = var_3 . split ( " " , 2 ) ;
      boolean var_6 = Character . isDigit ( var_4 [ 1 ] . charAt ( 0 ) ) ;
      boolean var_7 = Character . isDigit ( var_5 [ 1 ] . charAt ( 0 ) ) ;
      if ( ! var_6 && ! var_7 ) {
        int var_8 = var_4 [ 1 ] . compareTo ( var_5 [ 1 ] ) ;
        if ( var_8 != 0 ) return var_8 ;
        return var_4 [ 0 ] . compareTo ( var_5 [ 0 ] ) ;
      }
      return var_6 ? ( var_7 ? 0 : 1 ) : - 1 ;
    }
    ) ;
    return var_1 ;
  }
  