rem_search_properties_query_args

This filter is responsible for changing the search query before displaying the results.

Pasting following code in the functions.php file of the theme/child theme will sort the search results by Featured Properties. (Featured properties will display first).

add_filter( 'rem_search_properties_query_args', 'rem_sort_results_by_featured', 10, 1 );

function rem_sort_results_by_featured($args){
	$args['orderby'] = 'meta_value';
	$args['meta_key'] = 'rem_property_featured';
	$args['order'] = 'DESC';

	return $args;
}