# Workflow Automation: Sort Collected Items

Use the **Sort Collected** action to sort Podio *Items* collected in a previous step. This can be used with the **Search for Items** or the **Get Referenced Items** Collector.

This feature is helpful when you are building a custom detail table using **Custom Variables** in a **For Each** loop.

When collecting Podio *Items*, Podio returns them in the same order that the items were created in the *App* which can not be filtered by any specific column. For example, If an item has a *Date* field, this can cause issues when outputting the results into a table as there will be no order.

Add the **Sort Collected** after the Collector action you selected and choose the field to sort by.

![Sort Collected Items](https://www.progress.com/podio/documentation/assets/42e3ffa34f37fa9846539817b833d31f/sortcol.png)

Now, when the flow runs to create the table, all *Items* will be sorted by the field of choice.
