A table column you can sort by: press to sort, again to flip. Each column has a natural first direction (names A to Z, money high to low), so the first press gives the useful order. The th carries aria-sort.
npx shadcn@latest add https://notchset.dev/r/sortable-header.jsonsortable-header