fixed regex to match major.minor and drop patch version of sort