List (Java Doc) is a very common task and the Java Collections Framework (Guides) provides methods that perform this, such as the
Collections.sort() (Java Doc)method. Unfortunately this method will not work on all instances of type
List, such as
CopyOnWriteArrayList (Java Doc). This article provides a neat and simple way to have of how to obtained an ordered list.