"Gareth Gale" <ga*********@hp.com> wrote in message
news:cj**********@news.unix-apps.rit.sc2.udc.hpl.hp.com...
As per my initial message, I have done this. The post refers to the fact
that there seems to be plenty of examples where single column sorting is
permitted, but not nested sorting. I'd really like examples of the latter.
McKirahan wrote: "Gareth Gale" <ga*********@hp.com> wrote in message
news:cj**********@news.unix-apps.rit.sc2.udc.hpl.hp.com...
I'm trying to implement a way of allowing a user to sort a HTML table
via Javascript on the client. I've seen lots of samples where single
column sorting (asc or desc) is shown, but I'd like nested sorting i.e.
sort by col1 asc, then by col2 desc etc. Can anyone help ?
Next time first try a Google search on:
Sorting a HTML table with Javascript
Sorry, I did not read your post as well as I should have.
You should be able to adopt single column sorting logic for multiple
columns.
The trick is to allow the user to identify what columns sort in what
sequence and how (asc or desc). Are you looking for a generic solution or
do you have a specific table in miond? If the latter, what are the columns
and what sort options do you want?