How can I alphabetically sort the posts by title before displaying each post?
Here's the code that I'm using to display the posts in an archive page.
if ( have_posts() ) : while ( have_posts() ) : the_post();
$queried_post = get_post($post_id);
$title = $queried_post->post_title;
FYI: I am handling the query in this manner because I need to grab the 'raw' contents of the post (including the HTML tags) - not the usual "display a WP post." However, if anyone has an improved manner for 'grabbing' the post content, that's fine too. Basically, any help is appreciated.