Skip to contents

Sort a chars Object

Usage

# S3 method for class 'chars'
sort(x, decreasing = FALSE, ...)

Arguments

x

a chars object.

decreasing

logical. Should the sort be increasing or decreasing? Not available for partial sorting.

...

further arguments passed to or from other methods.

Value

a sorted chars object.

Examples

sort(chars("alphabet"))
#> [1] "aabehlpt"