code: public static <T extends GraphQLType> List<T> sortGraphQLTypes(Collection<T> types) {
          List<T> sorted = new ArrayList<>(types);
          sorted.sort(graphQLTypeComparator());
          return sorted;
      }
docs: This sorts the list of {@link graphql.schema.GraphQLType} objects (by name) and allocates a new sorted
  list back.
  
  @param types the types to sort
  @param <T>   the type of type
  
  @return a new allocated list of sorted things