some sorting of repeated configs