Or you can choose to let the client deal with it. I like this approach, because while server-side sorting results in many clients seeing poor response, client-side sorting results in all clients seeing equally fast server response.
Hear hear! Server side sorting is a waste.
--Quanah
-- Quanah Gibson-Mount Principal Software Developer ITSS/TSS/Computing Systems ITSS/TSS/Infrastructure Operations Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html