Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--no-sort should apply on each line when using -s #118

Open
lriesterer opened this issue Feb 6, 2024 · 1 comment
Open

--no-sort should apply on each line when using -s #118

lriesterer opened this issue Feb 6, 2024 · 1 comment

Comments

@lriesterer
Copy link

Here are different tests, I would expect all of them to produce unsorted results.

$ printf '{"z":2,"a":1}\n{"z":22,"a":11}' | gron --no-sort -s
json = [];
json[0] = {};
json[0].a = 1;
json[0].z = 2;
json[1] = {};
json[1].z = 22;
json[1].a = 11;
$ printf '{"z":2,"a":1}' | gron --no-sort -s
json = [];
json[0] = {};
json[0].a = 1;
json[0].z = 2;
$ printf '{"z":2,"a":1}' | gron --no-sort 
json = {};
json.z = 2;
json.a = 1;
@lafrenierejm
Copy link

Hey @lriesterer . This original repo seems to be unmaintained. I have made some significant changes on my fork, including support for non-sorted output. If you want to give my fork a spin, I'd be glad to field bug reports or feature requests if you send them over there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants