Like some other users here, I've had to sort my blog posting page in a very custom way, and this is done by downloading all posts with wp_query and sorting via a custom PHP usort function. I've yet to see another post here using pagination with this type of request, so I need a little a help getting that working.
As I understand it, pagination pulls data from the wp_query object. I was hoping to simply overwrite the variables used with the correct ones from my request. This has yet to work. I can set paged and posts_per_page correctly, but the main loop always prints every object in my original request, not the smaller array I get after sorting.
So my question is: how can I overwrite the required variables so that native WP pagination works with my array?
EDIT: actually, what I'm really after is a way to load an array of posts *back into WP_Query* after editing it.