Java List Sort sortStringList(List stringList)

Here you can find the source of sortStringList(List stringList)

Description

sort String List

License

Open Source License

Declaration

public static List<String> sortStringList(List<String> stringList) 

Method Source Code

//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;
    }
}

Related

  1. sortSimpleName(List list)
  2. sortSimpleName(List list)
  3. sortString(Set lists)
  4. sortStringEnumeration(Enumeration list)
  5. sortStringList(List l, boolean ascending)
  6. sortStringList(String[] listToSort, String[] priorityList)
  7. sortUniq(List list)
  8. sortUniqueTags(List unsortedTags)
  9. sortVersions(List versions)