orderBy

fun orderBy(key: String, direction: Direction? = null, startFrom: Number? = null)

Order the scroll by a numeric payload key instead of by point id, so a job that re-runs reads the points in the same order every time. Qdrant needs a payload index on key.

Pass startFrom to resume a partially consumed scroll: it is the order value of the last point the previous run handled, and it is inclusive, so that point is read again.