Ensuring versions are ordered correctly