tomnomnom / gron

Make JSON greppable!
MIT License
13.73k stars 325 forks source link

Ungron doesn't respect --no-sort option #103

Open slafs opened 2 years ago

slafs commented 2 years ago

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 ?

pbsds commented 1 year ago

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