-
Notifications
You must be signed in to change notification settings - Fork 109
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
Some way to sort keys :) #32
Comments
Did you find a way to sort? |
Honestly, I think this could go in clojure-mode. Now that it has vertical alignment of values, might be nice to sort keys too. @bbatsov WDYT? |
Sorting and pretty-printing would be a lot easier to do in the middleware. |
I think sorting is simpler in the client. There's nothing complex about sorting key-val pairs alphabetically, so there's no need to add a layer of complexity by involving the server. Besides, by working directly with the text (instead of sending it back and forth as data) there is less stuff you need to worry about (like accidentally losing/adding metadata, or deleting comments). |
As a note. I have just found the built in |
I love sorting things :)
I'd love a function to sort maps for easier reading.
Also, sorted maps diff better in git when you make test changes. (You may only change things slightly but the way the map prints garbles the whole commit by rearranging the map totally, making it look like more things have changed than eally have changed.)
The text was updated successfully, but these errors were encountered: