Created
February 2, 2012 04:27
-
-
Save john-kurkowski/1721480 to your computer and use it in GitHub Desktop.
org.semver.Version 0.9.11 weirdness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.semver.Version | |
val li = List(Version.parse("2.0.34"), Version.parse("1.1.0"), Version.parse("1.0.1"), Version.parse("34.1")) | |
// li: List[org.semver.Version] = List(2.0.4, 1.1.0, 1.0.1, 4.1.0) // HUH? | |
println(li.sorted) | |
// List(4.1.0, 2.0.4, 1.1.0, 1.0.1) // reversed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment