Yams
Yams copied to clipboard
Swap `sortKeys` bool for `keySort` function
(This is a breaking change, but I can make it non-breaking if preferred. It's just a lot more code repetition if non-breaking.)
This changes the sortKeys
option to be a more flexible keySort
function. The function defaults to nil
—do not sort—but can be anything that sorts Node
s. I ran into an issue where I wanted a custom sort on a mapping.
Thanks for the PR! Could you please rebase your commits on top of main
? That should fix the failing CMake CI jobs.
@jpsim this has been rebased. Thanks for taking a look!
@jpsim let me know if anything else is required here.
Hi, is this still mergeable? If so I'd love to merge it!