Sort a list with element still in first position

Posted by Mercer on Stack Overflow See other posts from Stack Overflow or by Mercer
Published on 2010-05-18T12:06:07Z Indexed on 2010/05/18 12:21 UTC
Read the original article Hit count: 154

Filed under:
|
|

I have a String list:

List<String> listString  = new ArrayList<String>();
listString.add("faq");
listString.add("general");
listString.add("contact");

I do some processing on the list and I want to sort this list but I want "general" still to be in first position. Thx ;)

© Stack Overflow or respective owner

Related posts about java

Related posts about sorting