Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

sortUndefined and Excel like sorting

Aperta
#6,061 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Inizia con il CodeSandbox collegato e con il comportamento di sortUndefined e excelSortingFn della tabella. Riproduci il problema di ordinamento con valori null o undefined, quindi verifica che l’ordinamento mantenga i valori vuoti alla fine, preservando le regole di ordinamento simili a quelle di Excel elencate.

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

Descrizione

TanStack Table version

8.21.3

Framework/Library version

React 18.2

Describe the bug and the steps to reproduce it

Hello and thanks for that fantastic library!
I have a question or a bug when creating an Excel like sorting. My problem is to get the null/undefined results always to the bottom of the table. I would have assumed that sortUndefined would do the trick but it did not. Therefore I tried to create a custom sorting for that. But I can not manage to geht the sorting correct.
Correct (Excel Like) would be, if my table could do that

Excel Behavior Supported in excelSortingFn?
Numbers before text ✅ Yes
Booleans in correct order ✅ Yes
Case-insensitive strings ✅ Yes
Empty/null values last ❌ Problem
No coercion of string "123" ✅ Yes

I added a simple code sandbox link below to try it out. Any help would be greatly appreciated.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://codesandbox.io/p/sandbox/boring-ellis-sw7h86

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

No, because I do not know how

Terms & Code of Conduct
  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Lingua principale
TypeScript
Stelle
28.5k
Fork
3.6k
Merge medio
19h 40m
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TanStack/table

Tutte le issue di TanStack/table

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.