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

Use a guaranteed stable sort #1531

Merged
merged 2 commits into from
Feb 29, 2024
Merged

Conversation

nielsenko
Copy link
Contributor

Fix a bug reported on slack for realm models with many properties, where the order of ctor arguments would appear random.

Turns out List.sort is not guaranteed to be stable (but apparently is for small lists).

@cla-bot cla-bot bot added the cla: yes label Feb 29, 2024
@nielsenko nielsenko force-pushed the kn/fix-argument-order-not-stable branch 2 times, most recently from fea252b to 24feeed Compare February 29, 2024 08:38
@nielsenko nielsenko marked this pull request as ready for review February 29, 2024 08:38
@nielsenko nielsenko force-pushed the kn/fix-argument-order-not-stable branch from 24feeed to 775495d Compare February 29, 2024 08:58
@nielsenko nielsenko merged commit 259a9ad into main-1.x Feb 29, 2024
55 checks passed
@nielsenko nielsenko deleted the kn/fix-argument-order-not-stable branch February 29, 2024 10:04
nielsenko added a commit that referenced this pull request Feb 29, 2024
* Use a guarenteed stable sort, when moving calculated properties to the end

* Update CHANGELOG
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants