{% assign sorted_assets = assets.all | sort:'filename' %} <ol> {% for asset in sorted_assets %} <li>{{asset.url}}</li> {% endfor %} </ol>