sort orders the rows, and descending reverses one key.
sort
descending
sales |> sort(descending(revenue)) |> take(3)
sales >> sort(descending(col.revenue)) >> take(3)
There is no ascending, because ascending is what happens when you do not ask for anything, and a word meaning “do the default” is a second way to say the same thing. Sorting by several keys reads left to right.
ascending
sales |> sort(product, descending(revenue))
sales >> sort(col.product, descending(col.revenue))