react-json-inspector icon indicating copy to clipboard operation
react-json-inspector copied to clipboard

[Feature Request] Sort fields

Open cmdelatorre opened this issue 8 years ago • 2 comments

I know JSON properties do not have an order.

Anyways, when developing UIs it is important to be consistent. So, every time I render JSON data I would like the order of the fields to be the same. Alphabetically works.

Do you think such a feature is possible?

cmdelatorre avatar Sep 22 '17 18:09 cmdelatorre

Hi, thank you for the suggestion.

Currently I use sort-object module to order the object before passing it to render. Would this work for your use case?

Lapple avatar Sep 22 '17 20:09 Lapple

I didn't know about such module. I'll try it. Thanks for the suggestion. Will let you know if it's enough.

El 22 sept. 2017 17:00, "Aziz Yuldoshev" [email protected] escribió:

Hi, thank you for the suggestion.

Currently I use sort-object module to order the object before passing it to render. Would this work for your use case?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Lapple/react-json-inspector/issues/36#issuecomment-331546564, or mute the thread https://github.com/notifications/unsubscribe-auth/ADNp9GnvI0vyE0VbpBt5eNiYXyvMFeCdks5slBHLgaJpZM4PhG5j .

cmdelatorre avatar Sep 22 '17 20:09 cmdelatorre