> For the complete documentation index, see [llms.txt](https://docs.kognitos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kognitos.com/legacy/legacy-experience/automation-areas/date-and-time/sorting-dates.md).

# Sorting Dates

This procedure sorts a list of dates in ascending order.

### **Syntax**

```
the dates are "{date}", "{date}", "{date}"
sort the dates
```

### **Example**

```
the dates are "2024-01-01", "2022-12-31", "2023-01-02"
sort the dates
```

#### **📖 Results**

* `2022-12-31`
* `2023-01-02`
* `2024-01-01`
