The simplest way to do this is to store the sort order in view state inside the SortCommand. When the event fires, examine the view state item. If it's null or DESC, set it to ASC. If it's ASC, set it to DESC to switch the order.
Then where you databind your data, use the view state item to apply the order. How you sort depends on the data source you're using....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Skinlike (Equationmix) by
Adult (Track 13 from the album:
Resuscitation)
What's This?