sort method
Sorts the inputs by orderings, the first one being the most
significant.
Implementation
Pipeline sort(List<Ordering> orderings, {Map<String, Object?>? rawOptions}) {
_requireNotEmpty(orderings, 'sort');
final List<Ordering> copy = List<Ordering>.of(orderings);
return _append(
Stage(
'sort',
args: <pb.Value Function(PipelineEncoder)>[
for (final Ordering ordering in copy) ordering.toProto,
],
rawOptions: rawOptions,
),
);
}