Learn R Programming

getopt (version 1.20.4)

sort_list: Recursively sorts a list

Description

sort_list() returns a recursively sorted list

Usage

sort_list(unsorted_list)

Value

A sorted list.

Arguments

unsorted_list

A list.

Examples

Run this code
l <- list(b = 2, a = 1)
sort_list(l)

Run the code above in your browser using DataLab