On a tangent: I was trying to figure out how to incorporate the filename when I was experimenting with this:
… but I ended up using the slug, because I have the dates in my filenames, so they will sort, and I did not want to figure out how to strip those out.