How to create a specific sorting function in jQuery Tablesorter?
问题 I am using this great version of jQuery Tablesorter: http://mottie.github.com/tablesorter/docs/index.html Everything is working well but now I have this problem: in my table, I have one column which contains positions of basketball players. Therefore I want that column to be sorted logically like this: PG-SG-SF-PF-C. I tried to create this custom sorting function - look at my script, column 2: $(document).ready(function() { $(".stats").tablesorter({ sortInitialOrder: 'desc', sortRestart: true