---
title: "Date Sort"
canonical: "https://support.appfire.com/space/REPS/472914801/Date%20Sort"
format: markdown
---
> Macro (aura-html)

### Description

This will sort the results by the specified date key value.

By default, empty values will be listed first, then the rest using ascending order.

Previews will not show sorted data

For performance reasons, sorting macros are not executed in **Preview** mode. This means the macro content could be different when the page is published.

### Parameters

| Name | Required | Migratable to Cloud? | Default Value | Description |
| --- | --- | --- | --- | --- |
| [default] /key | - (/) | - NO |  | The key chain value to sort on. |
| order | - (X) | - NO | ascending | May be **ascending** or **descending**. |

### Editor View

- Not applicable.

### Macro Edit View

- Not applicable.

### Notes

- Not applicable.

# Tutorial Examples

> Macro (contentbylabel)