Autodesk / Autodesk/react-base-table

Change the default sort direction to DESC on first click on each column header

Aperta
#290 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
1.5k
Fork
170
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello, currently if you click on random column header you get results sorted ASC and then DESC, and etc. The toggle ASC/DESC is correct but it always starts with ASC. I need this to start with DESC: when you click on any column header I need first sort direction to be DESC. Here is a basic playground:

https://autodesk.github.io/react-base-table/playground#MYGwhgzhAEBOCmZgBcBCl4BUwCMTwFEAPMAWwAd9p4jl4A7AExgCVEUA6AYQHsKf6DZNADeAKGjQJwARGSwArih6wAFOVg9yEAJSiJk6BAXl4ajVt0BuA5PzCZIBaXowAvNGQALAJYQOAPoA5vDIAMoqyDhg+LxOLhCqOjaG0PbQjGDIYNAeIYKwWfAAIllgqo7OrgA00ABMAAxNOhwIAG5mEPBJNraevv5yRbn6qZIQkagAngBco2OSANbws9AA5JUuALQNa9V9qSqMZnNrxxDAawfQAL77C5uuc48Q92OZ2XMfYH03KbcGAzBUIRWBRGLwOJVdzQJK5AB88zsoWgLxG+TMRShCVUAEYGsk+gAzFSw9I+EYNKzQCkAHlRPHirg4+HoQW81J8AGouXpxA9GdCANo+AC6HAmYNwVA88gU8H+khufQQyAUsHoDKZEH+yoMAmx9FBwg8krQUwRSP6fglIOydFU-LGZumb1S3zm3htQzoHG+rXgHVgXSSv0JSt6kgQTDMcKdUdC6s1qlpjB8bXhfVpXlx8ON8EY0BwFtpOHhIi9g3t8AlkymHGWUxutIA9GWMj4ECgfAJoKXy5WJdXa2DphwjmZm234a2c5nUrTsHh4NciT4iAXri83BWBkOihwXsqFt8d4OfTXvsfnXWz3uLyPzdfDvRDca7zaDYKXMbn9AWzOLZphm4YAsqNDkJEGTwESYAKCAwgIEgaAYEu+DEGQlAKkAA

How can I instruct react-base-table to change first click to DESC?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dal playground react-base-table collegato e riproduci l’ordinamento facendo clic sull’intestazione di una colonna. Segui il comportamento di ordinamento dell’intestazione della colonna per trovare dove viene selezionata la direzione iniziale; il lavoro è completato quando il primo clic ordina in DESC, mentre i clic successivi continuano ad alternare tra ASC/DESC.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
react, typescript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.