Implemented Package sorting according to semver specification

Fixed the sorting of nuget packages