Here you can find the source of sortStringList(List
public static List<String> sortStringList(List<String> stringList)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Main { public static List<String> sortStringList(List<String> stringList) { List<String> newList = new ArrayList<String>(); newList.addAll(stringList);/* ww w . j a v a2 s . c o m*/ Collections.sort(newList); return newList; } }