Ensure consistent container sorting