setSort() 以倒序应用多列排序优先级(最后一项成为主项,而不是第一项) - getSorters() 返回正确的顺序,但所应用的结果与之不匹配
作者: mjklugman创建于 2026年8月3日更新于 2026年9月13日
标签Possible Bug
Describe the bug
When calling setSort() with more than one sort entry, the sort priority is applied in the reverse of the specified order — the last entry in the array is treated as the primary sort key, and the first entry as secondary, rather than the other way around. This also happens with genuine interactive multi-column sorting (click a column header, then Shift/Ctrl+click a second one) — the second-clicked column ends up as primary, the first-clicked as secondary, the reverse of the expected behavior.
内容来源: tabulator-tables/tabulator