posting again because I wasn't subscribed to the mailing list before.
So, I have a table that has a few text and date fields, as well as two hyperlink fields. The hyperlinks are sorting by the url instead of the description of the link, which is how I would like it to work. I would think that something like the following would work, code I pulled from an example on the tablesorter website. var myTextExtraction = function(node) { // extract data from markup and return it return node.childNodes[0].childNodes[0].innerHTML; } $(document).ready(function() { $("#myTable").tableSorter( {textExtraction: myTextExtraction} ); } ); I thought that would work, my cell is two tags deep as in the example this code is used in. The column looks something like this: <td> some url description_text </td> I would like to sort by the "description_text" above. I also tried adding some code inline like so: <td class="{textExtraction: function(node) { return node.childNodes[0].childNodes[0].innerHTML; }}">.....</td> that didn't work either. Does anyone know how to sort a hyperlink (a tag) by the description rather than by the link url itself? -- View this message in context: http://www.nabble.com/tablesorter----need-help-sorting-hyperlinks-tp18578739s27240p18578739.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.