Reputation: 21
I am using the Tablesorter plugin for jQuery and I have it sorting a merchandise stock table. It is working fine, but I would like to change the way it sorts and can't figure it out.
For the QTY column, the data is either a number for how much of an item is in stock, or if an item is not in stock it could be "out" or "special order". The way it sorts the QTY column descending now is "out" then the highest number to lowest. I would like the words to be last because if QTY is not a number it will always equal 0.
Thanks ahead for any help.
Upvotes: 1
Views: 85
Reputation: 21
Just found that the new version of tablesorter includes this functionality (since version 2.0.10). http://mottie.github.io/tablesorter/docs/example-options-headers-digits-strings.html
Upvotes: 1