I have a supertable with over 79 repeater fields.

Is there a way I can sort these fields in the frontend alphabetically? For example I have: Romania Germany Austria ... On the frontend I would like the list to be as Austria Germany Romania ...

1 Answer 1


You can use the orderBy parameter to get super table blocks in the specified order. For example, if your super table field is called countries and the title field (that you store the country's name in) is called country_title, the code would look like this:

{% set alphabeticalCountries = entry.countries.orderBy('country_title').all() %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.