config
config copied to clipboard
Render option to sort keys
Hi @mmolimar,
Thank you for your contribution! We really value the time you've taken to put this together.
Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:
Note: I have signed CLA.
The idea to implement this is to allow the API to sort the keys in the order you like setting your custom comparator. In my case, I have to sort these keys in a specific order so that the rendered output has the same output as a template I have expects.
For example, in other libs such as spray-json
you can set a custom printer to do this (among other things).
We do not intend to extend the functionality of "Typesafe Config" further. See https://github.com/lightbend/config#maintained-by