Sorting tables

Voo

Voo

Associate
Joined
6 Jul 2006
Posts
113
Location
Hull, East Yorks
I have a few tables on a website that are creating by querying a mySQL database to output the data.

I need to be able to order one of the columns in Descending order from highest to lowest number.

Any one got any good guides or snippets of code to help me out with this?
I'm assuming it would be some kind of javascript.
 
This is what i was looking for:

http://kryogenix.org/code/browser/sorttable/

While this does the required effect, i want to be able to automatically sort the tables on one specific column only, not all columns. This is so that the end user doesn't have to press the title to get it in order. I want it to automatically appear in order as soon as the page loads.

Any ideas?
 
Last edited:
Back
Top Bottom