sort semver before slice