Merge an array of query variables with an existing WordPress query.
I was tasked with alphabetizing the archive of a custom post type using an off-the-shelf theme. The theme's archive.php file used the global variable
global $wp_post to set the query.
The example here was placed in a custom post type archive (archive-example.php) following the global variable to merge with the default query. One can use this with any of the query variables.