---
title: "SortKey"
sidebar_label: "SortKey"
description: "Kotlin binding reference: SortKey."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[SortKey](index.md)

# SortKey

[common]\
data class [SortKey](index.md)(val column: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), val order: [SortOrder](../SortOrder/index.md) = SortOrder.ASCENDING, val nulls: [NullOrder](../NullOrder/index.md) = NullOrder.LAST)

One key of a multi-key sort, most significant first, with its direction and null placement.

## Constructors

| | |
|---|---|
| [SortKey](SortKey.md) | [common]<br>constructor(column: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), order: [SortOrder](../SortOrder/index.md) = SortOrder.ASCENDING, nulls: [NullOrder](../NullOrder/index.md) = NullOrder.LAST) |

## Properties

| Name | Summary |
|---|---|
| [column](column.md) | [common]<br>val [column](column.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) |
| [nulls](nulls.md) | [common]<br>val [nulls](nulls.md): [NullOrder](../NullOrder/index.md) |
| [order](order.md) | [common]<br>val [order](order.md): [SortOrder](../SortOrder/index.md) |