Skip to content
New issue

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

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

Already on GitHub? # to your account

Improve event sorting #1450

Merged
merged 3 commits into from
Mar 24, 2024
Merged

Improve event sorting #1450

merged 3 commits into from
Mar 24, 2024

Conversation

Randalphwa
Copy link
Collaborator

This PR changes the event name sorting algorithm. If the event names are identical, it tries to sort by handler names. If they are identical, it tries to sort by property id. If those are identical, then it sorts by the property's variable name. By being this granular, it ensures that code generation is identical in event code generation on Windows and Unix, as well as make it easier to find specific event bindings in the code.

Closes #1449

This will sort by event name if unequal, handler name if unequal,
property id if unequal, and var_name if all the previous checks
are equal.
@Randalphwa Randalphwa merged commit cb3a119 into main Mar 24, 2024
@Randalphwa Randalphwa deleted the event_sorting branch March 24, 2024 02:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Event name sorting on Linux is different than on Windows
1 participant