orderBy method

S orderBy(
  1. List<MssqlOrder> ordering(
    1. TFields fields
    )
)

Replaces the ordering from a fields callback.

orderBy((o) => [o.placedAt.desc(), o.id.desc()]) is the form. A parallel orderByColumn family is not added.

Implementation

S orderBy(List<MssqlOrder> Function(TFields fields) ordering) =>
    rebuild(state.withOrderBy(ordering(fields)));