[PR #5918] budgetfilesSlice: Fix paste-o in fallback sorting by ID #6210

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

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

State: closed
Merged: Yes


The sortFiles() function, in case of tied names, attempts to fall back to sorting by (local or cloud) file ID. However, it is using the fields from the x/LHS file object as the projection for the y/RHS object too. This was likely a copy-paste error. This commit fixes that by correcting the object references to the y object.

**Original Pull Request:** https://github.com/actualbudget/actual/pull/5918 **State:** closed **Merged:** Yes --- The `sortFiles()` function, in case of tied names, attempts to fall back to sorting by (local or cloud) file ID. However, it is using the fields from the `x`/LHS file object as the projection for the `y`/RHS object too. This was likely a copy-paste error. This commit fixes that by correcting the object references to the `y` object.
GiteaMirror added the pull-request label 2026-02-28 21:25:21 -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#6210