Forum Home
Press F1
 
Thread ID: 109820 2010-05-24 05:43:00 Sorting java table Mike (15) Press F1
Post ID Timestamp Content User
887675 2010-05-24 05:43:00 I have a table (csv) with some data in it, and a Java servlet that is pulling that data and displaying it in a web table.

CSV has 5 columns:
FirstName, LastName, Age, Address, Phone

I want to display the data in the table sorted by Age. Is this possible without too much trouble? I'm thinking collections.sort somehow, but this is only sorting on the first column (or rather, I think, the whole row)

Thanks,
Mike.
Mike (15)
887676 2010-05-24 06:26:00 Saw this a few months ago - looks like it should help...

www.kryogenix.org/code/browser/sorttable/

EDIT: Whoops! just realised this was client-side. Possibly not what you want, but may be a pointer to the solution?
MushHead (10626)
1