private static void sortMatchList(List<Match> list) {
    if (list != null) {
      // light sorting on start position
      Collections.sort(list, (Match m1,
          Match m2) -> (Integer.compare(m1.startPosition, m2.startPosition)));
    }
  }
private static void sortMatchList ( List < Match > list ) { if ( list != null ) { Collections . sort ( list , ( Match m1 , Match m2 ) -> ( Integer . compare ( m1 . startPosition , m2 . startPosition ) ) ) ; } }
Sort match list.

@param list
the list