# Sort

<table><thead><tr><th width="164">Name</th><th width="185">Type</th><th width="150">Default</th><th>Description</th></tr></thead><tbody><tr><td>columns</td><td><code>string</code></td><td><code>[]</code></td><td>The columns to sort by.</td></tr><tr><td>directions</td><td><code>Array&#x3C;'asc'> | Array&#x3C;'desc'></code></td><td><code>[]</code></td><td>The sort directions.</td></tr></tbody></table>

{% hint style="info" %}
See the TypeDoc [documentation](https://larswaechter.github.io/voici.js/modules.html#Sort) too.
{% endhint %}
