In the https://mfaani.com/posts/devtools/ directory I have 5 posts and one subdirectory of https://mfaani.com/posts/devtools/optimizing-app-size/.
The 5 posts are sorted by date. But the weight nor Date frontmatter fields within the _index.md of the /optimizing-app-size directory isn’t factored in the ordering. The subdirectory just gets dumped at the end of the list.
When I attempt to change the weight of a single post within the /devtools directory, things work though.
Thank you so much. So the pages are sorted, but the combined $pages variable isn’t. Because I have ‘sorted pages, followed by sections’ which just get dumped? That makes perfect sense.