How does #foreach tags determine order?

I’m wondering how the #foreach helper determines the order in which it loops through and displays tags.

In this specific case, I’m using the Headline theme, which allows users to input tags to show up on the homepage through the admin interface. I’m trying to figure out how the theme code determines which order to show the tags in. I believe the relevant code is here:

any pointeres much appreciated!

Hey @uri, from my experience the foreach lists the items in the order you have them in the input.
But you can extend the {{#get}} to sort by a property using the order attribute.

1 Like