Fix for invalid versions that can't be sorted by semver