Could this be a compareTo method on the SemVer prototype? Or a "SemVer.compare" method attached directly to the SemVer function? Feels like it should be grouped in there as a self-contained item.