Skip to content

list does not match website when sorting by pledge#579

Merged
theospears merged 2 commits into
beeminder:masterfrom
krugerk:bugfix/578-sorting-by-pledge
Dec 30, 2024
Merged

list does not match website when sorting by pledge#579
theospears merged 2 commits into
beeminder:masterfrom
krugerk:bugfix/578-sorting-by-pledge

Conversation

@krugerk
Copy link
Copy Markdown
Contributor

@krugerk krugerk commented Dec 29, 2024

Summary

When sorting by pledge, goals were sorted grouped by pledge amounts. The sort order within seemed undefined.

Also used the opportunity to clean the code somewhat using sorted(using:) where multiple comparators may be provided.

Validation

Ran app in simulator.
Compared before and after to list when sorting on the website.

Fixes #578

and also cleaning up the code, using sorted(using:)
@krugerk krugerk requested a review from a team as a code owner December 29, 2024 23:23
@krugerk krugerk requested review from theospears and removed request for a team December 29, 2024 23:23
Copy link
Copy Markdown
Collaborator

@theospears theospears left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mich nicer!

@theospears theospears merged commit 3620b9e into beeminder:master Dec 30, 2024
@krugerk krugerk deleted the bugfix/578-sorting-by-pledge branch December 30, 2024 01:02
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.

app's list when sorted by pledge is unpredictable and unlike the website's list

2 participants