-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Reorder elements inside arrays #338
Comments
Hi, thanks! This is a duplicate of #158, and the feature is welcome! I will close this in favour of the other issue.
Yes, I will try, although in very limited ways. The array formatting code can be found here. The code collects the values into groups that are separated by blank lines, so in theory sorting the rows before So going by that implementation the sorting of multi-line arrays would look something like this: # unformatted
foo = [
"b",
"a",
"c",
3,
1,
2,
]
# formatted
foo = [
"a",
"b",
"c",
1,
2,
3,
] If we want absolute order without the groupings, this will get a bit more complicated. After the formatting code is implemented, following are needed:
|
Hi! I would like to implement a PR that would allow sorting arrays. How I expect it to work:
What do you think about the idea? Are you ready to help me?
The text was updated successfully, but these errors were encountered: