sortBy() orders the whole frame, so it has to see every row first. ->desc() reverses the order.
Examples
Transformations
Description
Documentation
Transformations are expressions over a row, evaluated column by column.