richie5um / vscode-sort-json

VSCode Extension to Sort JSON objects
https://marketplace.visualstudio.com/items?itemName=richie5um2.vscode-sort-json
MIT License
110 stars 19 forks source link

Put Objects at end || Sort by length of value #28

Closed robsonsobral closed 5 years ago

robsonsobral commented 5 years ago

Hi! Thank you so much for the extension.

Is it possible to put Numbers and Strings before Objets? Something like sort by the length of the values. It would make easier to analyze a JSON if the short objects came before.

richie5um commented 5 years ago

It is possible, but that would make the need for another set of actions. Sorry to say this, but, you are welcome to create a PR with the change.

richie5um commented 5 years ago

I've add a sort by type. Update to v1.17.0

Number < String < Object < Array

Let me know (asap) if you think the order is wrong.