This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
Similar Threads
Difference between sorted and ordered?
sort a csv file having phone numbers
Collections.sort() does not sort my ArrayList
question from CertPal
Inserting numbers in order