Skip to content

Sorting Rule (sort) โ€‹

Sorts the DataFrame by specified columns.

FieldDescriptionRequired
columnsArray of column names to sort byโœ… Yes
ascendingSort order (true for ascending, false for descending)โŒ No (default: true)

Example: โ€‹

json
{
    "type": "sort",
    "columns": ["timestamp", "customer_id"],
    "ascending": true
}

Behavior: Sorts data by timestamp and customer ID in ascending order.