I’ve got a few post titles that start with a lower case letter and others that have an upper case letter. I want to sort .Title in the correct order regardless of case.
When I do range site.RegularPages the sorting is messed up because of the different cases, like so Ab, Ba, ab. I want it to be ab, Ab, Ba
How you handle this? I found a previous discussion about this here. But I don’t follow the implementations and looking to see if there is another workaround since that thread is from last year.
Did you try it exactly as-is? Because I’m not seeing that.
Edit: When testing this, I named my content files: 1.md, 2.md, 3.md, and 4.md. Then gave them the titles you mentioned. So not sure if this is making a difference.
Copied your code directly, and even just renamed my content files to match what you had done. Still get: `ba, ab, Ba, Ab.
My thinking is that in order to sort the content files correctly, all titles need to be converted to lower case, and then somehow range through those, but output the original titles.