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 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

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: 10825

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
I agree. Here's the link:
subject: Doubt in Using a Comparator
It's not a secret anymore!