ver_sort: Sort version codes

View source: R/versionsort.R

ver_sortR Documentation

Sort version codes

Description

ver_sort() returns a sorted vector of version codes, where sorting is done alphanumerically.

Usage

ver_sort(x)

Arguments

x

character()
A vector of version codes that start with a number (as in "1.5.0"), i.e. without initial "v" (as in "v1.5.0").

Value

A character vector containing the same elements as input, but reordered.

See Also

ver_order()

Examples

ver_sort(c("1.5-0", "1.4-1", "0.0.0.9000", "1.4-0a", "1.4-0"))


ErdaradunGaztea/versionsort documentation built on May 22, 2022, 10:36 a.m.