lightbend / config

configuration library for JVM languages using HOCON files
https://lightbend.github.io/config/
6.16k stars 967 forks source link

Support customize RenderComparator when execute SimpleConfigObject#render #761

Open ruanwenjun opened 2 years ago

ruanwenjun commented 2 years ago

I find when execute config.root().render(), it will execute SimpleConfigObject#render finally, and I find the output order is not equals as I defined.

I see the code, it will use RenderComparator to sort the key, I want to ask can we support customize the RenderComparator from ConfigRenderOptions?

I would like to submit pr to do this change.