-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adding dot separator #20
Comments
Hi. Could you show me how you plan to use this feature? I’m concerned that simply adding |
This requirement comes from wanting to sort css classes when using haml markup. Ex:
In the sample above, I would like to be able to sort Also note that it is possible in haml to not define the html tag (instead it will use a div by default), ex:
|
@AlainPilon Thank you for clarification! Now I understand your request. I think trying to use dot as a separator only if no whitespace characters are selected is acceptable. Do you think this behavior is acceptable? Background of the designFor example, let's think the example illustrated below:
Current Smart Sort (1.2.1) will choose separator as next: comma for range C, space for range A and B. After adding the dot as separator as described above, Smart Sort will choose separator as: comma for range C, space for B, and dot for A. |
Totally. Another option, to protect other users from unexpected sort, would be to have the dot separator sorting as an option (false by default). |
@AlainPilon Hi, I just released version 1.3.0 which includes the feature. I decided to make the feature on by default (can opt-out too) because it should no be a surprise change as previous version of Smart Sort did nothing under the condition to execute the new feature. Please try it and if you notice anything, please let me know. Thank you! |
Cool! I am working on everything but front end code these days. But as soon as I am, I will test it right away! Thx! |
Just to circle back on this after working with it for a few days: so far everything works perfectly. Thx. |
Hi. Could you add the "." (dot) to the list of separators.
Thanks
The text was updated successfully, but these errors were encountered: