transform list with coordinates to stream , execute sorting coordinates in the natural order . and return as new list . concode_field_sep Matrix<Character> railArrayMatrix concode_elem_sep int railKey concode_field_sep void calculateCoordinates concode_elem_sep void createRailFenceArrayMatrix concode_elem_sep void fillRailFenceArrayWithText concode_elem_sep Matrix<Character> getRailArrayMatrix
List < String > function ( List < String > arg0 ) { return arg0 . stream ( ) . sorted ( ( s1 , s2 ) -> new AlphanumericComparator ( ) . compare ( s1 , s2 ) ) . collect ( Collectors . toList ( ) ) ; }