hello nicolas. both configuration collection entries as well es nested configuration items should always return in the order they where entered/are stored in the repository.
this is a sample application we always keep up to date and contains most special usages and edge cases [1]. stefan [1] https://github.com/wcm-io/wcm-io-caconfig/tree/develop/sample-app >-----Original Message----- >From: Nicolas Peltier <peltier.nico...@gmail.com> >Sent: Friday, August 28, 2020 7:03 PM >To: users@sling.apache.org >Subject: [caconfig] best way to have an ordered list of CA configurations > >Hey, > >am wondering what is the best way to get an ordered list of configuration: >- setting my configuration to be a collection, but the API seems to use >Collection which is not supposed to be ordered, >- using nested configuration, like here [0], but i have troubles seeing >working examples (this one included :-)) > >Nicolas > >[0] >https://github.com/stefanseifert/sling-contextaware-config-aem- >sample/blob/63f46e3a8a1006c3c7e5af0fc03d0eaf5df8acde/bundles/base/src/main/ >java/io/wcm/caconfig/sample/config/ConfigSampleNested.java#L23