Display posts with \'Product\' type ordered by \'Price\' custom field:
$query = new WP_Query(
array ( \'post_type\' => \'product\',
You don't need any filter or hooks to sort multiple custom fields, if your one of custom field is meta_key and other one is normal column of table, than use these parameters/arguments in your query.
'meta_key' => 'KEY_NAME',
'orderby' => 'meta_value_num SECOND_COLUMN_NAME',
'order' => 'ASC' or 'order' => 'DESC'
Here the order of meta_value_num
and SECOND_COLUMN_NAME
matter, you may see different-2 result based on the order.