Ordering sequence plugin does not reset after third column sort

Ordering sequence plugin does not reset after third column sort

KuronumaKuronuma Posts: 7Questions: 3Answers: 0

Hello, I have installed the new ordering sequence plugin described on this page. It works great but I noticed some odd behavior, and I was able to replicate that behavior in the example on the DataTables blog.

When you sort by multiple columns and click a column header to toggle through the sort options, the number on the header of a column does not disappear until the fourth click on the header.

I would expect the behavior to be: 1. Ascending (number appears), 2. Descending (number persists), and 3. Sorting removed (number removed).

In actuality, the behavior is: 1. Ascending (number appears), 2. Descending (number persists), 3. Sorting removed (number persists), 4. Number removed.

This could be confusing to users because the numbers are not accurately representing the current sort order of the table.

Does anyone have a fix for this issue?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    Answer ✓

    Good point - thanks for flagging that up. Looks like I need to have the plugin check the column direction that is applied, and perhaps the DataTables multi-column search be a bit more smart.

    I don't have an immediate fix, but I've added it to my to do list.

    Allan

  • KuronumaKuronuma Posts: 7Questions: 3Answers: 0

    Thanks! It's not a huge deal, but I appreciate you looking into it. :) I'll keep an eye out for the fix!

Sign In or Register to comment.