Skip to content

Topic leaderboard columns should be sortable #597

Closed

Description

@gkhngyk

Problem

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

Suggested fix

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.
  • Default order remains visibility descending.
  • Headers expose aria-sort like the Prompts page.

Activity

  1. added
    enhancement
    on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions