I was looking at some javascript and AJAX examples for table sorting as opposed to sorting a huge db by php. The biggest problem is that I need a custom key for a column that does not sort alphanumerically. Considering the object nature of JQuery and other AJAX apps, would this be possible to assign a class to just one table header with a custom key for sorting?
Why not creating a compare function and using it? I'm not very good at JS, but if it's anything like C it should have function pointers... Just make a sorting function that gets a pointer to a compare function which would return -1, 0, 1 respectively for (a<b), (a==b), (a>b) And then use that compare function to sort...
I'm using the sorttable library. It's very easy to use, because it automatically detects each column sorting method. But for your custom sorting function you need to use their "Using custom sort keys" feature.