Implemented Package sorting according to semver specification