added the ability to sort by a custom WP_Query