This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Have a look at the API Doc for the List interface. It includes a list of all standard classes that implement this interface. Select the most appropriate one for your needs (or write your own).
Once you have chosen your class, create an instance of it and then add your data to it.
You can then use the Collections.sort() methods to sort the data. Your data class will either have to implement the Comparable interface or you will have to use the version of Collections.sort() that accepts a Comparator instance. [ August 09, 2007: Message edited by: Joanne Neal ]