Hey Camille,
If you’d like to get a list (i.e. an array) of all of your blog posts based on the order they were originally published, you can use the following query.
import wixData from 'wix-data';
//...
/**
Name of the collection goes in the wixData.query('NAME_OF_COLLECTION') section.
*/
wixData.query("Blog/Posts").ascending('publishedDate')
.then(results =>{
console.log(results.items);//This will print the code to the console to give you a view of your blog posts in a Javaascript Array.
});.
If you wanted to order them by oldest to newest first for most recent publish date (like when you go back and update a blog post and then click publish again), switch the field key in ascending to ‘lastPublishedDate’ instead.