View Single Post
Old Apr 27th, 2006, 3:50 PM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Sure, ifs. Just append what you want to the orderby variable. You can even send it as a separate thangamabobby. Sometimes I make two or more select widgets and offer the HOW as well as the WHAT to sort on. Sometimes I fix it where, when you click on a column heading, it sorts on that column. A second click reverses the ascending/descending modifier. That implies including client-side script, though, and sometimes I don't want to do that.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote