sort

Type of operation: Metadata

Description

Sort rows in the dataset based on ordering functions applied to column fields or column name provided as arguments. If a column name is provided without an ordering function, the asc ordering is implicit.

Usage

sort ordering ...

Argument

Type

Required

Multiple

ordering

ordering

Required

Can be multiple

Accelerable

sort is always accelerable if the input is accelerable. A dataset that only uses accelerable verbs can be accelerated, making queries on the dataset respond faster.

Examples

sort foo

Sort the dataset by the column namned foo (default is in ascending order)

sort asc(podName), desc(clusterId)

Sort the dataset ascending by podName and descending by clusterId