Welcome to the Ranch. You will have to go through the API and find Comparator and set up four classes which implement Comparator. Set up each of the methods as a compareTo() method. You can simply usebecause Strings already implement the Comparable interface. For ID numbers you can get away with something likeNote that you will have to fulfil the requirements in the API specifications for Comparator.
To sort backwards, try the reverse method of Collections.
Another interesting more generic solution to this problem would be to implement a Comparator using Reflection. I have used psuedo code to do this below.
Then you could use the code in the following manner.
Also a cool open source project is josql that allows you to query collections in a declaritive way (something like 'select * from collection order by getLastName() desc, getFirstName() asc'): http://josql.sourceforge.net/
My FormattedDataSet API has the ability to use a sql like syntax on Object. You can query by name or position. An example of using ArraySQL to query by position follows: