AbsoluteOrder when no, or other column, is sorted

AbsoluteOrder when no, or other column, is sorted

apaquetapaquet Posts: 6Questions: 2Answers: 0

Hello,
When I first started programming my site with DataTables, the AbsoluteOrder.js sorting plug-in kept the item(s) at the top/bottom regardless of the column sorted by. Now, with the new absolute.js, the "absolute data" is only in the absolute position when the column it is in is being sorted. Is there a method to keep certain values from a certain column always at the top/bottom regardless if that, or any other column, is sorted?

Replies

  • allanallan Posts: 63,441Questions: 1Answers: 10,459 Site admin

    Have you got a link to a page showing the old behaviour? I'm not sure that had ever been my intention, and I don't recall it working like that. It would be possible to modify the absolute sort so it does that - you'd need to return -1 or 1 for items that it should put in the "fixed" position, and then 0 for everything else, allowing the secondary sort to occur. I could look into adding that. I'm wondering if there was something unique about your original setup though, or quite possibly I'm misremembering.

    Regards,
    Allan

Sign In or Register to comment.