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

Option to "commit" the sorted key order

Open CarlosNZ opened this issue 8 months ago • 0 comments

Currently, when the "keySort" prop is enabled, the data is displayed alphabetically by key, or by a compareFunction.

However, this is just for display and doesn't change the underlying data. It might be useful to have a commitSort option that actually modifies the data object according to the sort rules.

Keen to get some input as to what would be useful/expected in this regard.

CarlosNZ avatar Jun 12 '24 21:06 CarlosNZ