Ensure versions are consistently ordered on save