I received a comment in my other article with the same title from Larry C. Lyons indicating me a better solution by Stuart Langridge making use of a Javascript library he wrote called sorttable.js, which sorts the HTML table by sortable headers, without having to send another request to the database.
Very well done, congratulations Stuart.
Glad you liked it. 🙂
If you already use Prototype.js, you might want to check out Tablekit. It does that and much more. You can find it (and other scripts) at http://scripteka.com