Alphabetical sort order wrong in jQuery Tablesorter?

偶尔善良 提交于 2019-12-13 19:58:09

问题


I'm using the jQuery Tablesorter plugin (http://tablesorter.com/) and it appears to me that their definition of "ascending" vs "descending" is backwards.

Below is the table that is the demo on the Tablesorter site -> http://tablesorter.com/docs/#Demo

This shows that the column is sorted as "descending" according to Tablesorter, which to my knowledge means it should be sorted Z-A. However, below you can see the result is it being sorted A-Z, which I thought was "ascending".

This was brought to my attention because in ActiveRecord, if I sort a collection "ascending" it is A-Z.

Am I crazy here? Or is this an issue with the library?

来源:https://stackoverflow.com/questions/27747244/alphabetical-sort-order-wrong-in-jquery-tablesorter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!