CASTableGroupBy.
nsmallest
Return the n smallest values ordered by columns
See also
CASTable.nsmallest(), CASColumn.nsmallest()