Orders a vector of version numbers, in natural order.
orderVersion(x, ..., decreasing = FALSE) sortVersion(x, ...)
x | a character vector of version numbers |
---|---|
... | extra parameters passed to |
decreasing | a logical that indicates if the ordering should be decreasing |
#> [1] 1 2 3orderVersion(v)#> [1] 1 3 2#> [1] "1.0" "1.03" "1.2"sortVersion(v)#> [1] "1.0" "1.2" "1.03"