简体   繁体   English

YUI数据表错误排序

[英]YUI datatable bad sorting

Again i have this path 我再次拥有这条道路

http://www.tampografica.com/atech/admin/YUIdatatable.html http://www.tampografica.com/atech/admin/YUIdatatable.html

try to order by visits, its ordering by string no number... if you check the Javascript it shows that i put the number formatter 尝试通过访问订购,它的字符串排序没有数字...如果你检查Javascript它显示我把数字格式化

any help? 任何帮助?

Thanks 谢谢

The data reaching the table are numeric strings. 到达表的数据是数字字符串。 just add { key: 'someField', parser: 'number' } to the appropriate fields in the responseSchema.fields. 只需将{key:'someField',parser:'number'}添加到responseSchema.fields中的相应字段即可。

You can also find answers to questions like this in the YUILibrary.com forums archive: http://yuilibrary.com/forum/viewforum.php?f=90 你也可以在YUILibrary.com论坛档案中找到这样的问题的答案:http: //yuilibrary.com/forum/viewforum.php?f = 90

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM