# makeSortedKey {#makesortedkey}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`makeSortedKey(args...)`

## Arguments {#arguments}

**args** are multiple scalars or vectors of the same length.

## Details {#details}

Combine the specified *args* as a BLOB scalar or vector. `makeSortedKey` stores the keys in sorted order internally, while returns the same result as `makeKey`.

## Examples {#examples}

```
makeSortedKey([`b,`a,`c], [`4,`2,`1])
// output: ["b4","a2","c1"]

set(makeSortedKey(1 2, 4 5))
```

Related Function: [makeKey](makeKey.md)

