order.assumeSorted!((a, b) => number[a] < number[b]) .lowerBound(order[4])
and I'll retrieve the indices of the 4 smallest numbers. Not useful for my current purposes, but is getting me closer to figuring out how higher level functions and ranges work.
Thanks Andrew