n
integer
required

How many of the leading rows to keep after sorting.

sort_by
[array, string]

One or more columns to sort by before picking the first n rows. May be a column name or a list of column names.

exclude
boolean

If true, the first n rows after sorting will be excluded from the resulting dataset.

ascending
boolean

Whether to sort in ascending order rather than descending.