Order by Expiration

Using the post expirator plugin see useful plugins

For woo products with variable category
query like so;
query=”expires_first|catid=248″

using pre_get_posts: