Finally! You can see a full-blown example of the techniques I’ve been discussing here (the code’s for IE only).
Sorry this took awhile, I’ve been a little behind lately. The good news is the code took me all of an hour to sling together…the real time was spent organizing, cleaning, and documenting it so it’s easy to follow.
There’s also code to make HTML tables sortable from Kryogenix.com, which I’ve used before – very handy. I believe it uses some of the same techniques. Maybe I’ll look them both over, and do a compare/contrast with what I’ve written here.