Post Order Corrected!

"correcting the Post Order" in white over a pink cavern image.

In order to get the post order correctly sorted (so that the oldest post appears first on the home page) I added this line to the WPGraphQL query on the createPosts.js file:

where: {orderby: {field: DATE, order: ASC}}

That’s added within the wpgraphql{posts() portion of the query.

That has resolved the issue on the home page, now I need to figure out how to have the “Up Next” that appears on the nav bar on single posts push to the next NEWEST post instead of the next OLDEST one.

But getting the posts ordered correctly feels like a win.

Progress.