Does any one have code out there to sort arrays or recordsets?

Here's the problem:

I'm bringing back a recordset from the database and loading a data grid. When someone clicks on the column, I want to be able to sort either ascending or descending. So I have to sort this recordset.

I don't want to have to call the stored procedure, I want to reduce the calls and place data on the client side.

Can anyone help or come up with a good alternative. Or there any data grids that do this for me?

I'd appreciate your help.

Mike