-
Notifications
You must be signed in to change notification settings - Fork 1
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
Sorting inline stuff (html attributes, javascript object keys, css) #2
Comments
@Noitidart I'll look into it as I'm using this a lot too. I actually planned to (some day) implement an object-sorting mechanism that actually detects objects. I guess that'd fix part of this issue.
{z: true, b: false} => {b: false, z: true} Works for me. What's the part you don't expect?
|
|
|
Thank you sir so much!! You thought of common cases that I didn't even consider! Too great! :) |
|
Thank you sooo much for keeping us updated, especially the to do style task list you edited into the OP. JSON sorting is so awesome! Just tested it! |
This is just such an awesome plugin. Thank you for it. I use it regularly to sort keys in javascript objects:
But I was hoping to use it on html attributes as well, but it splits on the
=
so it doesnt work. Is it possible to make it not split on=
?Like:
Should sort to:
Also some time in my js objects I have a space between the colon so like this:
And this fails to sort, is it possible to ignore the first space after a colon?
Example of inline css:
A regex split that would work for this is
/\:\w*/
or for equals sign:/\=\w*/
The text was updated successfully, but these errors were encountered: