You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Topic leaderboard is hard-sorted by visibility descending. There is no way to sort by prompts, mentions, citations, SoV, or last run — every header is a plain <TableHead>. The All Prompts page already ships a reusable SortableHead (with aria-sort and chevron affordances) that can be lifted or copied.
Evidence
Fixed sort: topics/page.tsx#L203-L206 — sortedByVisibility is always b.visibilityRate - a.visibilityRate
Add a sortKey/sortDir state, make the numeric and date columns clickable via a SortableHead-style header (copying the Prompts implementation is fine; extracting it into src/components/ for both pages is a welcome bonus), and default to the current visibility-descending order.
Acceptance criteria
Prompts, Visibility, SoV, Mentions, Citations, and Last run columns are sortable in both directions.
Activity