Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCustom map key sort functions #384
Open
Comments
acofer
added a commit
to skuid/json-iterator-go
that referenced
this issue
Aug 15, 2019
feature json-iterator#384: Specify custom map key sort function
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, when
SortMapKeysis set totruein Config, map keys are sorted using a standard alphanumeric sort. It should be possible to specify a custom map key sorting function to use, in order to prioritize certain map keys over others.Example: Standard SortMapKeys behavior:
Example: custom SortMapKeys behavior: