gron icon indicating copy to clipboard operation
gron copied to clipboard

Ungron doesn't respect --no-sort option

Open slafs opened this issue 3 years ago • 1 comments

When using the --ungron option I'd expect the --no-sort option to take effect too, but unfortunately it's being ignored.

Example:

$ echo '{"z": "first", "a": "last"}' | gron --no-sort | gron --no-sort --ungron
{
  "a": "last",
  "z": "first"
}

Maybe related to #102 ?

slafs avatar Jun 29 '22 12:06 slafs

It think this issue is in reality a request for a --insert-order flag

pbsds avatar Sep 19 '22 08:09 pbsds