[jQuery] Custom sorter/parser for tablesorter
I'm just discovering jQuery and finding it really interesting.
Usual sort of 'learn by doing' thing. I've been playing with
the tablesorter plugin, but I've run into a wall. Particularly
I want to be able to sort a table on a column containing
integrated circuit numbers (such as 7400, LM555, 74LS50
4026, et cetera). I want the technology (i.e., the 'LS'
in '74LS50') to be ignored for sorting purposes, so 74LS50
and 74H50 would be juxtaposed. I also want the series
to be grouped together (e.g., 7400 series together,
4000 series together, et cetera).
Unfortunately, this is possibly a little more complex than
it might seem. Given the following part numbers,
the correct ascending order should be
I'm used to custom sorting callbacks that are given two arguments
and return whether a<b, a==b, or a>b -- but I'm not finding how
to do the equivalent with tablesorter.
Is it even possible?
Ken Coar, Sanagendamgagwedweinini http://Ken.Coar.Org/
Author, developer, opinionist http://Apache-Server.Com/
"Millennium hand and shrimp!"