krangl / krangl / DataFrame / sortedBy

sortedBy

abstract fun sortedBy(vararg by: String): DataFrame

Resorts the receiver in ascending order (small values to go top of table). The first argument defines the primary attribute to sort by. Additional ones are used to resolve ties.

Missing values will come last in the sorted table.

Works similar as listOf(1,2,3).sortedBy{ it }