File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Sorting using Lists Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Sorting using Lists" Watch "Sorting using Lists" New topic

Sorting using Lists

Gregor Joseph

Joined: Jul 05, 2005
Posts: 9
In how many different ways can I sort a List?

Thanks in advance.

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336 many ways as you can think of? (Is this a trick question?)

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

In how many different ways can I sort a List?
You can start by reading the following:

The Java� Tutorial - Object Ordering
Making Java Objects Comparable
I agree. Here's the link:
subject: Sorting using Lists
It's not a secret anymore!