R/utils.R
sort_nlist.Rd
Sorts a named list by its names.
sort_nlist(x)
The named list to sort.
The sorted named list.
sort_nlist(list(y = 2, x = 1, a = 10)) #> $a #> [1] 10 #> #> $x #> [1] 1 #> #> $y #> [1] 2 #>