aspose file tools*
The moose likes Java in General and the fly likes Doubt in Using a Comparator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Doubt in Using a Comparator " Watch "Doubt in Using a Comparator " New topic
Author

Doubt in Using a Comparator

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528



The above code sorting is based on Customer FirstName .

How can i sort based on employee Age . Please help

If you want something you never had do something which you had never done
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10519
    
    9

http://faq.javaranch.com/java/SearchFirst
http://faq.javaranch.com/java/ShowSomeEffort

I googled for java Comparator example and the very first hit had a nice example.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212
hh
 
 
subject: Doubt in Using a Comparator