"collect" transform collects (buffers) the data items from the data flow
into an internal array and optionally sorts them.
- Arranges the data into consecutive batches based on the groups. This is mainly intended for internal use so that faceted data can be handled as batches.
- The sort order.