A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Sort song titles
Joined: Feb 13, 2003
Mar 03, 2003 02:07:00
how can i sort the titles of the songs in descending order by using String.comparTo() method?
Peter den Haan
Joined: Apr 20, 2000
Mar 03, 2003 02:18:00
Assuming that "songs" is a List of song titles or Song objects that have a sensible natural ordering. If not, then please tell us a bit more about your problem.
I agree. Here's the link:
subject: Sort song titles
need to find quicksort that sorts in descending order ..ARG
Reverse sort of array
How TreeSet ensure the sorted order of data items
Sorting Array in Descending Order
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015