-
Notifications
You must be signed in to change notification settings - Fork 32
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
[wip] Sort children of OrderedGroup etc. by @index #478
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something really bad happens to my comments/suggestions here. Either they get duplicated many times, or lost!
Anyway, I think there has been a misunderstanding...
Co-authored-by: Robert Sachunsky <[email protected]>
Co-authored-by: Robert Sachunsky <[email protected]>
Co-authored-by: Robert Sachunsky <[email protected]>
* `get_AllIndexed()`: list all RegionRefIndexed, OrderedGroupIdexed and UnorderedGroupIndexed elements, sorted ascending by their index * `clear_Allindexed()`: Removes all RegionRefIndexed, OrderedGroupIdexed and UnorderedGroupIndexed elements and reeutrns them * `add_AllIndexed(elmenets): Add a variety of RegionRefIndexed, OrderedGroupIdexed and UnorderedGroupIndexed elmenets with proper sort byt index On export of an OrderedGroup, the elements are listed with `get_AllIndexed` and hence should have the correct order. Also when exporting: all empty OrderedGroupIdexed/UnorderedGroupIndexed will be replaced with `RegionRefIndexed` with appropriate `index` nd `regionRef`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fantastic – thanks a lot!
Alas, the new export functionality only arrived at |
Obviously an error in the regex for class_names, fixing. |
Cannot reproduce the issue, I see defintion for and Not sure what I can do. Can you provide a small code sample to test? |
You are right. Don't know just what I saw. Everything seems to be working fine. Sorry for the noise! |
This overrides the
exportChildren
of the generatedOrderedGroupType
and sorts the containedRegionRefIndexed
(andOrderedGroupIndexed
andUnorderedGroupIndexed) by their resp.
@index` attribute.While this works as expected, the output still is unsorted and I am temporarily stumped as to why.
While I'm confidant that it should not involve much more code, I currently cannot see what the issue ist. Will try again tomorrow but if someone has an idea, I am happy hearing them.