I’m ranging over a yaml file like this:
{{ range (index .Site.Data .Params.gallery) }}
{{ range . }}
Here’s a sample of some entries from the yaml:
- src: "210723.mp3"
title: "7/23/2021"
date: 210723
- src: "210724.mp3"
title: "7/24/2021"
date: 210724
- src: "210727.mp3"
title: "7/27/2021"
date: 210727
I want to display the results in order using the “date” attribute since that will place them in the correct chronological order. At the moment it displays them alphabetically (i.e. 2/2022 comes before 7/2021)