Skip to content

generator: AbstractMetaClassList: correct sorting #132

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

Merged
merged 1 commit into from
Oct 17, 2023
Merged

generator: AbstractMetaClassList: correct sorting #132

merged 1 commit into from
Oct 17, 2023

Conversation

jbowler
Copy link
Contributor

@jbowler jbowler commented Oct 16, 2023

In some places the list was sorted by pointer (resulting in a random sort) in other cases by name, sometimes with stable_sort, sometimes not. Now sort by name and use a stable_sort.

In some places the list was sorted by pointer (resulting in a random
sort) in other cases by name, sometimes with stable_sort, sometimes not.
Now sort by name and maintain do a stable_sort.

Signed-off-by: John Bowler <[email protected]>
@jbowler
Copy link
Contributor Author

jbowler commented Oct 16, 2023

This may be part of the reason the WARNING messages output by pythonqt_generator are in a random order; successive runs of the generator produces identical messages in a different order, making checking for errors introduced by a change very difficult. Unfortunately it isn't the whole reason; the warnings still come out in a random order even with this change.

Copy link
Contributor

@mrbean-bremen mrbean-bremen left a comment

Choose a reason for hiding this comment

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

👍🏼

@mrbean-bremen mrbean-bremen merged commit 9d691d1 into MeVisLab:qt6 Oct 17, 2023
@jbowler jbowler deleted the pull-request-132 branch October 17, 2023 16:23
mrbean-bremen pushed a commit to mrbean-bremen/pythonqt that referenced this pull request Oct 29, 2023
In some places the list was sorted by pointer (resulting in a random
sort) in other cases by name, sometimes with stable_sort, sometimes not.
Now sort by name and maintain do a stable_sort.
mrbean-bremen pushed a commit that referenced this pull request Oct 29, 2023
In some places the list was sorted by pointer (resulting in a random
sort) in other cases by name, sometimes with stable_sort, sometimes not.
Now sort by name and maintain do a stable_sort.
mrbean-bremen pushed a commit that referenced this pull request Nov 1, 2023
In some places the list was sorted by pointer (resulting in a random
sort) in other cases by name, sometimes with stable_sort, sometimes not.
Now sort by name and maintain do a stable_sort.
mrbean-bremen pushed a commit that referenced this pull request Nov 2, 2023
In some places the list was sorted by pointer (resulting in a random
sort) in other cases by name, sometimes with stable_sort, sometimes not.
Now sort by name and maintain do a stable_sort.
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.

2 participants