Autodesk / Autodesk/react-base-table
Change the default sort direction to DESC on first click on each column header
- Langage dominant
- TypeScript
- Étoiles
- 1.5k
- Forks
- 170
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par le playground react-base-table lié et reproduisez le tri en cliquant sur l’en-tête d’une colonne. Suivez le comportement de tri de l’en-tête de colonne pour trouver où la direction initiale est sélectionnée ; c’est terminé lorsque le premier clic trie en DESC, tandis que les clics suivants continuent d’alterner entre ASC/DESC.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- react, typescript
- Domaine
- frontend
- Type d'issue
- Fonctionnalité
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100