Picks the newest of versions by semantic-version precedence.
the newest version as it was given, or null when none is a semantic version
version names, e.g. the version directories of a package