Set initial sorted desc then asc

Set initial sorted desc then asc

ASKempASKemp Posts: 19Questions: 7Answers: 0

I have a default sort order set, e.g. order: [[0, "desc"]] so that my first column is sorted in descending order by default.
However, when I click to sort another column and then come back to sort this first column, it first sorts ascending.

I.e. can you set the order of the sort order so that when you first order by a column it is selectively either desc or asc - it seems to only be asc first.

I want some columns, e.g. ledger id, dates etc. desc when first selected to order by whereas others asc when selected for ordering.

This question has an accepted answers - jump to answer

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    Hi ASKemp,

    Yes you can, have a look at the documentation here.

    Hope this helps,

    Sandy

  • ASKempASKemp Posts: 19Questions: 7Answers: 0

    Many thanks, will take a look.

This discussion has been closed.