public static void sort2dArray ( long [ ] [ ] arr ) {
  Arrays . sort ( arr , ( a , b ) -> {
    if ( a [ 1 ] == b [ 1 ] ) return ( int ) ( a [ 0 ] - b [ 0 ] ) ;
    return ( int ) ( a [ 1 ] - b [ 1 ] ) ;
  }
  ) ;
}

public static void sort2dArray ( long [ ] [ ] arr ) { Arrays . sort ( arr , ( a , b ) -> { if ( a [ 1 ] == b [ 1 ] ) return ( int ) ( a [ 0 ] - b [ 0 ] ) ; return ( int ) ( a [ 1 ] - b [ 1 ] ) ; } ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier))) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (lambda_expression parameters: (inferred_parameters (identifier) (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (array_access array: (identifier) index: (decimal_integer_literal)))) consequence: (return_statement (cast_expression type: (integral_type) value: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (array_access array: (identifier) index: (decimal_integer_literal))))))) (return_statement (cast_expression type: (integral_type) value: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (array_access array: (identifier) index: (decimal_integer_literal)))))))))))))