Here you can find the source of sortList(java.util.List types)
public static java.util.List sortList(java.util.List types)
//package com.java2s; /******************************************************************************* * Copyright (c) 2001, 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * /* w ww .ja v a 2 s. co m*/ * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ public class Main { public static java.util.List sortList(java.util.List types) { try { java.util.Collections.sort(types); // performance? n*log(n) } catch (Exception e) { // XSDEditorPlugin.getPlugin().getMsgLogger().write("Sort failed"); } return types; } }