[PR #6543] Only reverse import preview transactions if they appear to be sorted by date ascending #6590

Closed
opened 2026-02-28 21:30:24 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6543

State: closed
Merged: Yes


Hi! This is a tiny fix: I noted in the source code that Actual aims to show the preview of transactions to import sorted by date descending, to match the account page itself. To do this, it reverses the transaction list, assuming they tend to be ascending.

At least in the case of my bank (and also in packages/loot-core/src/mocks/files/data.ofx), this isn't the case, so it ends up reversing them back to ascending. This PR reverses the transaction list only if the dates appear to be ascending to begin with.

Summary by CodeRabbit

Release Notes

  • Enhancements
    • Improved transaction import preview to intelligently detect and handle transaction ordering based on date patterns, reversing only when appropriate.

✏️ Tip: You can customize this high-level summary in your review settings.

**Original Pull Request:** https://github.com/actualbudget/actual/pull/6543 **State:** closed **Merged:** Yes --- Hi! This is a tiny fix: I noted in the source code that Actual aims to show the preview of transactions to import sorted by date descending, to match the account page itself. To do this, it reverses the transaction list, assuming they tend to be ascending. At least in the case of my bank (and also in `packages/loot-core/src/mocks/files/data.ofx`), this isn't the case, so it ends up reversing them _back_ to ascending. This PR reverses the transaction list only if the dates appear to be ascending to begin with. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Enhancements** * Improved transaction import preview to intelligently detect and handle transaction ordering based on date patterns, reversing only when appropriate. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
GiteaMirror added the pull-request label 2026-02-28 21:30:24 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6590