-
Notifications
You must be signed in to change notification settings - Fork 44
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
Feature: sort items shared a same length after sort by line-length
#429
Comments
line-length
line-length
The current behavior is to allow the user to place same-length items in the order that they want, I think that we should keep that by default. I don't think that there is a need to add a complex fallback sorting behavior for items with the same length. I assume that most use cases would be to sort items of the same length alphabetically? |
Yeah, I prefer to sort same length items alphabetically too. But currently the plugin just leave it as it is. |
I'll see what's the best way to integrate such an option. |
Still trying to find the best way to implement this. Requirement: fallback configuration must handle at least:
Possible solutions:
Con: distinct from the existing
Pros: Explicit. |
I prefer the And maybe we should find a more semantic option name for it. |
This feature is also a hard requirement for Feature: sort-modules in order of use #434
In which case, we should be able to handle a list of fallback configurations. |
What rule do you want to change?
any rule
Describe the problem
I checked docs of
sort-exports
and didn't found any option to make it possible to sort items shared a same length to a certain order after sort byline-length
.May be we should add a new option?
Code example
Additional comments
No response
Validations
The text was updated successfully, but these errors were encountered: