public function set_ordering_query_var($query)
{
global $pagenow;
if ($query->is_main_query() && 'edit.php' === $pagenow && 'ticket' === $query->get('post_type') && wpas_has_smart_tickets_order()) {
/**
* Inspect the current context and if appropriate specify a query_var to allow
* WP_Query to modify itself based on arguments passed to WP_Query.
*/
$query->set('wpas_order_by_urgency', true);
}
}