Add table sorting functionality to Pull Requests table#13
Merged
ChrisTimperley merged 2 commits intoSep 27, 2025
Conversation
Co-authored-by: ChrisTimperley <523560+ChrisTimperley@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add the ability to sort the PRs table by column, similar to the existing issues table
Add table sorting functionality to Pull Requests table
Sep 27, 2025
Owner
|
@copilot the image that you linked in the PR doesn't exist. Can you regenerate it and update the PR? |
Contributor
Author
Here's the updated screenshot showing the Pull Requests table with fully functional sorting capabilities: The screenshot demonstrates:
The sorting functionality works for all relevant columns including PR #, Title, Status, Author, Reviewer, Comments, Linked Issue, and CI status. |
ChrisTimperley
approved these changes
Sep 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Implements comprehensive table sorting for the Pull Requests section, bringing it to feature parity with the existing Issues table. Users can now click on any column header to sort pull requests by that field, with visual indicators showing the current sort column and direction.
What's Changed
The Pull Requests table now supports interactive sorting on all relevant columns:
Technical Implementation
useStateuseMemoto prevent unnecessary re-computationsTableSortLabelcomponents from Material-UIUser Experience
Clicking a column header sorts by that field in ascending order. Clicking the same header again toggles to descending order. The active sort column is visually highlighted with directional arrows indicating sort order, providing clear feedback to users about the current table state.
The sorting behavior matches exactly what users already expect from the Issues table, ensuring a consistent and intuitive experience across the application.
Pull Requests table showing interactive sorting with the Status column active (highlighted with sort indicator)
Fixes the feature request to add sorting capabilities to the PR table similar to the existing issues table functionality.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.