11ty peeps, what’s the simplest way to sort a particular collection by the file slug? #11ty
The answer ended up being to use eleventyConfig.addCollection, which is counterintuitive because in my mind I’ve already “added” it.
But anyway, you can pass a callback, get all the posts in the target collection, then sort how you like.
https://www.11ty.dev/docs/collections/#getfilteredbytag(-tagname-)