Skip to content

Instantly share code, notes, and snippets.

@john-kurkowski
Created February 2, 2012 04:27
Show Gist options
  • Save john-kurkowski/1721480 to your computer and use it in GitHub Desktop.
Save john-kurkowski/1721480 to your computer and use it in GitHub Desktop.
org.semver.Version 0.9.11 weirdness
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