-
Notifications
You must be signed in to change notification settings - Fork 34
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
#sort: on MooseGroup not working #2518
Comments
#sort: changes the internal collection because #sort: should not return a new one but order itself and return itself. I think we could improve it to ask to the internal collection to sort itself instead of creating a new one. I tried to add some tests but for now they are passing (but at some point I tried to sort packages in an inspector and it did not work). I'll do some more digging |
#sort does work. |
I did a PR to improve the implementation. moosetechnology/Famix#692 Now about the inspector what Clotilde said makes sense. Should we close the issue? |
before closing
|
The 2 is done already. For the 1 I am not sure what is the best (there is the raw view for real state of the object) |
I think I found a solution. We could remove the automatic sorting but add the little arrows in the table, to do the sort when needed (as it is when inspecting an OrderedCollection for example) |
I like it |
Proposed fix here: moosetechnology/MooseIDE#1004 |
For example on packages, it always sorts on alphabetical order
Note: #sort: changes the internal collection and I don't see why ?!?
Apart from that,
(self entities sorted: aBlock)
works as expectedThe text was updated successfully, but these errors were encountered: