How can I limit the listings page based on meta data?

I was wrong. I tried following a pre_get_posts example found in this forum but it causes the listings page to be blank. Adding the code below to the theme’s functions.php makes class-listings.php’s render() function never fire. What could I be doing wrong?

add_action(
	'pre_get_posts',
	function($query){
		if(!is_admin() && 'hp_listing' === $query->get('post_type') && 'listings_view_page' === hivepress()->router->get_current_route_name()) {
			$query->set('orderby', 'asc');
		}
	},
	1000
);

This example is documented here: Change order of listings to random