Fix changelog entry ordering in multi-project show command#6
Merged
Conversation
Entries were displayed newest-first instead of oldest-first when showing multiple projects. Changed the sort key in _render_entries_multi_project() from -ts to ts to sort entries ascending by date, ensuring consistency with single-project display and placing the newest entry at the bottom of the table where users expect it. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The multi-project show command now displays entries in chronological order (oldest first), matching single-project behavior and user expectations. Previously entries were sorted newest-first, creating an inconsistency in the application's sorting behavior. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
Fixed changelog entry ordering in the multi-project show command. Entries were being displayed newest-first instead of oldest-first. Changed the sort key in
_render_entries_multi_project()from-tstotsto sort entries ascending by date.Changes
-tstotsat line 775 to sort entries oldest-first (ascending by date) instead of newest-firsttest_cli_show_multi_project_sorts_entries_oldest_firstto verify entries are sorted oldest-first within each projectThe fix ensures consistency with the single-project
_sort_entries_for_display()function and meets user expectations where the newest entry appears at the bottom of the table.Test Plan
test_cli_show_multi_project_sorts_entries_oldest_firstvalidates the fixGenerated with Claude Code