需要在gridviewfix jquery datatable插件上排序 [英] Need number sorting on gridviewfix jquery datatable plugin

查看:77
本文介绍了需要在gridviewfix jquery datatable插件上排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用gridviewfix datatable插件我的项目。由于对表进行排序,存在一些错误。例如,我在'asc'中排序数字。它显示(1,10,100,1000 ...)而不是(1,2,3,4 ......等)。请回复我..提前致谢

Hi,
I am using gridviewfix datatable plugin my project. There is some error due to sort that table. For example I sort number in 'asc'. It shows (1,10,100,1000...) instead of (1,2,3,4...etc). Kindly reply me.. Thanks in advance

推荐答案

Wes 是正确的。您要排序的列可能是 string 类型,而不是整数。如果要对整数进行排序,请将其标记为。
Wes is correct. The column which you are sorting, might be of type string, not integer. If you want to sort integers, then mark it like that.


这篇关于需要在gridviewfix jquery datatable插件上排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆