Mui-datatables: Sort Icon displayed reverse

Created on 13 Jul 2020  路  3Comments  路  Source: gregnb/mui-datatables

With our previous discussion on issue of sorting: https://github.com/gregnb/mui-datatables/issues/1394

We ended up to a solution:

https://codesandbox.io/s/inspiring-lederberg-nde7o?file=/src/App.js

But I have noticed another observation here.

Ideally Arrow Pointing Up is termed or expected to have Ascending order where in Arrow pointing down to be descending. But this sandbox gives the reverse behavior(On salary column)

Please suggest

Most helpful comment

Thank You Guys!!! This worked

All 3 comments

I probably had 1 and -1 mixed up in the order part. I鈥檓 not near a desktop today, but may be able to take a look later tonight if it turns out not to be a 1/-1 flip.

I probably had 1 and -1 mixed up in the order part. I鈥檓 not near a desktop today, but may be able to take a look later tonight if it turns out not to be a 1/-1 flip.

https://codesandbox.io/s/amazing-northcutt-sqsot?file=/src/App.js

Thank You Guys!!! This worked

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Andy1408 picture Andy1408  路  4Comments

naothomachida picture naothomachida  路  3Comments

JordanKadish picture JordanKadish  路  4Comments

NickToye picture NickToye  路  4Comments

chapmanjacobd picture chapmanjacobd  路  4Comments