Skip to content

Sort list output by registration date#24

Merged
garaemon merged 1 commit intomainfrom
2026.04.06-list-sort-by-created
Apr 7, 2026
Merged

Sort list output by registration date#24
garaemon merged 1 commit intomainfrom
2026.04.06-list-sort-by-created

Conversation

@garaemon
Copy link
Copy Markdown
Owner

@garaemon garaemon commented Apr 7, 2026

Show recently added papers first in paperpile list

The list command previously displayed items in whatever order the API
returned them. Users expect to see their most recently registered
documents at the top when browsing the library.

Add --sort flag with created as default

  • Parse the created timestamp (Unix float64) from the API response
    into LibraryItem
  • Sort items by created descending (newest first) by default
  • --sort none preserves the original API order

Tests added

  • Verify descending sort order by created timestamp
  • Verify --sort none preserves original order
  • All existing tests updated for new function signature

Generated with Claude Code

The list command now sorts items by their registration date by default,
with the most recently added items appearing first. A --sort flag is
added to control this behavior (created or none).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@garaemon garaemon merged commit 1baabe1 into main Apr 7, 2026
3 checks passed
@garaemon garaemon deleted the 2026.04.06-list-sort-by-created branch April 7, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant