UNPKG

delphirtl

Version:
28 lines (14 loc) 489 B
[**delphirtl**](../README.md) • **Docs** *** [delphirtl](../globals.md) / sort # Function: sort() > **sort**(`values`, `ascending`?): `string`[] Sorts the given values array and returns it ## Parameters • **values**: `string`[] • **ascending?**: `boolean` = `true` ## Returns `string`[] The sorted values array, in a new array. ## Defined in [src/arrayutils.ts:37](https://github.com/chuacw/delphirtl/blob/b2d86277a5251f0037cf01044224c3e29dc4c6be/src/arrayutils.ts#L37)