---
title: "sort(byIncreasingOrder:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mluntypedcolumn/sort(byincreasingorder:)"
---

# sort(byIncreasingOrder:)

Returns a new MLUntypedColumn containing values sorted by the specified order.

## Declaration

```swift
func sort(byIncreasingOrder: Bool = true) -> MLUntypedColumn
```

## Parameters

- `byIncreasingOrder`: A boolean indicating whether to sort values in ascending or descending order. The default is true, sorted by ascending order.

## Return Value

Return Value A MLUntypedColumn sorted by the specified order.
