The 'Label' and 'Items' columns of Special:WatchlistLabels should be sortable.
Derived Requirement
Enable sorting for the Label and Items columns on *Special:WatchlistLabels*.
Users must be able to sort labels in ascending and descending order by label name and by the number of watchlist items.
Sorting behavior must be consistent, deterministic, and correctly reflected in the table UI.
Test Steps
Test Case 1: Verify Label column is sortable
- Log in to the wiki.
- Navigate to *Special:WatchlistLabels*.
- Click the Label column header.
- Observe the order of labels.
- Click the Label column header again.
- ✅❓❌⬜ AC1: Confirm labels sort alphabetically in ascending order on first click and descending order on second click.
Test Case 2: Verify Items column is sortable
- On *Special:WatchlistLabels*, click the Items column header.
- Observe the order of labels based on item count.
- Click the Items column header again.
- ✅❓❌⬜ AC2: Confirm labels sort numerically by item count in ascending order on first click and descending order on second click.
Test Case 3: Verify sorting indicators are displayed
- Click the Label column header.
- Observe the column header UI.
- ✅❓❌⬜ AC3: Confirm a visual indicator (e.g., arrow) appears showing the active sort column and direction.
Test Case 4: Verify sorting persists during interaction
- Apply sorting to either Label or Items column.
- Refresh the page.
- ✅❓❌⬜ AC4: Confirm the selected sort order persists after refresh or resets consistently to a documented default.
QA Results -Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T410356#11471646 |
| 2 | ⬜ | T410356#11466151 |
| 3 | ✅ | T410356#11466151 |
| 4 | ✅ | T410356#11466151 |