开发者

Jquery Tablesorting Problem - Sort text column case-insensitively

开发者 https://www.devze.com 2023-01-01 16:58 出处:网络
I am using a Jquery Tablesorter plugin for sor开发者_运维知识库ting a table.I want, when I sort the text column, jquery tablesorter consider the lowercase and uppercase text equally means sort text co

I am using a Jquery Tablesorter plugin for sor开发者_运维知识库ting a table.I want, when I sort the text column, jquery tablesorter consider the lowercase and uppercase text equally means sort text column case-insensitively.

How can i do it?


There are various parts in the plugin code such at this at line 701:

return $.trim(s.toLowerCase());

where the values are all converted to lowerCase to avoid case difference problems. Although I think these are implanted nicely you should be able to modify these lines to adjust this. simple remove all toLowerCase methods. but ready them thoroughly before simply just deleting.

0

精彩评论

暂无评论...
验证码 换一张
取 消