Repeat images from a folder (how to sort)

I managed to set up a repeat that shows the images from a specific folder and limits to 10 buthow do I make it always display the latest image first? I used an api action folder list then pointed the repeat to that data. where do I add the sort?

When selecting the expression for the repeat you can apply a formatter to the folder list you selected, so that it sorts them by the created column, you can reverse for descending direction:

Expression becomes:

serverconnect1.data.folderList.sort(`created`).reverse()
1 Like

I had actually tried that but I was doing top 10 (prior) to the sort. when I moved the top 10 after the sort I was good. Thanks