Range page resources in order

By default Resources order is alphanumeric based on their filename.

You can either sort them by weight, see this topic for an example.

OR

Use the :counter placeholder at the start of the resources .Name and sort them like so:

{{- range sort (.Resources.ByType "image") "Name" -}}
...
{{- end -}}
1 Like