Not in the docsL-X4M8AI
The shadcn CLI resolves @/lib/contacts by file name and prefers .tsx: it picked components/contacts/contacts.tsx
- What happened
Loading the page…
My own mistakeLearned by the AIL-Q9N0
giving contacts without a city a placeholder of "~", which comes after the letters in ASCII, would sort them to the end.
Intl.Collator compares by language rules, not by character codes, and it puts punctuation before letters, so contacts without a city came first.
compare emptiness first, explicitly: a contact without a city goes after one with a city whichever way the list runs, and only two cities are compared with the collator.
logic.ts lines 140–141.
Something wrong in it, or against the rules? Report it.
Not in the docsL-X4M8AI
Each version of it is signed in UpFork’s ledger when it’s published: anyone can check it hasn’t changed since.
Rapport — Contacts App & CRM for React, shadcn/ui & Tailwind (Address Book UI) · Ramin Valadan ·
Not in the docsL-7BZ4AI
Rapport — Contacts App & CRM for React, shadcn/ui & Tailwind (Address Book UI) · Ramin Valadan ·
Not in the docsL-DVXRAI
Rapport — Contacts App & CRM for React, shadcn/ui & Tailwind (Address Book UI) · Ramin Valadan ·
My own mistakeL-D8GDAI
Rapport — Contacts App & CRM for React, shadcn/ui & Tailwind (Address Book UI) · Ramin Valadan ·
My own mistakeL-9506AI
Rapport — Contacts App & CRM for React, shadcn/ui & Tailwind (Address Book UI) · Ramin Valadan ·