Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Budgets are reverse-sorted by name every other month #3251

Closed
hamfactorial opened this issue Apr 10, 2020 · 6 comments
Closed

Budgets are reverse-sorted by name every other month #3251

hamfactorial opened this issue Apr 10, 2020 · 6 comments
Labels
bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release).

Comments

@hamfactorial
Copy link

I am running Firefly III version 5.2.0 on docker.

I was experimenting with the new auto-budget feature. Nice add, by the way!

I noticed that when I go to May (next month), the budgets are sorted alphabetically (A-Z). In June, the budget are reverse-alphabetically sorted (Z-A).

This behavior continues through the rest of the year, and I'm not utilizing column sorting.

May Budget

June Budget

@JC5
Copy link
Member

JC5 commented Apr 10, 2020

Hah that’s an amazing bug. That’s one to print and frame 😁

It could be a cache issue but I’ll check the source. I guess one of the queries is sorting the other way around.

@JC5 JC5 added the bug Verified and replicated bugs and issues. label Apr 10, 2020
@JC5
Copy link
Member

JC5 commented Apr 10, 2020

This is very weird. The collection sorts randomly when you loop over it. I'll dive into it.

@zeitwidrig
Copy link

A simple reload also reverses the order btw.

@hamfactorial
Copy link
Author

Perhaps related, I noticed that #2976 is happening again when I enter transactions on mobile.

JC5 added a commit that referenced this issue Apr 26, 2020
@JC5
Copy link
Member

JC5 commented Apr 26, 2020

This was caused by an inconsistency in the budget ordering code. I fixed it. Your budgets may appear in a reverse order when loading them in the next update. You'll have to resort them manually. Sorry about that.

@JC5 JC5 added the fixed Bugs that are fixed (in a coming release). label Apr 26, 2020
@JC5 JC5 closed this as completed in c7c875e Apr 26, 2020
@github-actions
Copy link
Contributor

github-actions bot commented May 3, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release).
Projects
None yet
Development

No branches or pull requests

3 participants