Do you have to implement the sort yourself (ie for a class project) or do you just need them sorted? There are a bunch of different algorithms you can use in either case. As far as Java libraries go this page seems to have you covered. If you need to do it yourself, look up algorithms like "quicksort", "insertion sort" and "heap sort" for some pretty basic ones. An insertion sort is oddly appropriate for this situation because a common metaphor it is sorting a hand of cards.
Posts