code: public static void sort(List<? extends Extension> extensions, Collection<SortClause> sortClauses)
      {
          Collections.sort(extensions, new SortClauseComparator(sortClauses));
      }
docs: Sort the passed extensions list based on the passed sort clauses.
  
  @param extensions the list of extensions to sort
  @param sortClauses the sort clauses
  @since 7.0M2