sorting on part of the data in a cell

sorting on part of the data in a cell

joatmanjoatman Posts: 11Questions: 0Answers: 0
edited June 2011 in General
Hello,
Our td elements contain a whole bunch of data including html tags. is there some way to zero in on a specific part of it and sort based on it? the sorting plugin example seems to only get text to be compared:
Query.fn.dataTableExt.oSort['numeric-comma-asc'] = function(a,b)

here 'a' and 'b' is simply text

in my case, a cell looks like this, and the time value "12:30 PM" in the last tag is what i need to sort on:
[code]




Mexico City , MX (MEX)



MEX
12:30 PM

[/code]

Is that possible?
Thanks,
Nilesh
This discussion has been closed.