Auto-sort collections on initialization