# collection.sorted · Rell standard library · Chromia Docs (concept)

> pure function sorted(): list <T> Sorts the elements of this collection into a list. This collection is not modified. Returns a sorted list containing the s

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/collection/sorted/

FUNCTION

# collection.sorted

```signature
pure function sorted(): list<T>
```

Sorts the elements of this collection into a list. This collection is not modified.

**Returns**

a sorted list containing the same elements as this collection

Since 0.8.0

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/collection/sorted.html)Generated API reference, mirrored from the live docs
