Improved the sorting of the entries for configs