How to do sorting of products in the CMS Netcat?

Good day to all.
Tell me how to do the sorting of the list of goods to Netcat on the number in reverse order?
$sort_dir = $nc_core->input->fetch_get('sortDesc')? 'DESC' : 'ASC';
$price_column = "Price";
$sorting_methods = array(
 "=> array('query_order' => "`Vendor` $sort_dir, `Name` $sort_dir", 
 'title' => 'alphabetically', 
 'query_select' => "),
 'price' => array('query_order' => "`__PriceRange` $sort_dir", 
 'title' => 'price',
 'query_select'=>", (IF(`Price` = 0 OR `$price_column` IS NULL" .
 "(SELECT MIN(`$price_column`) FROM `Message$classID` AS pr WHERE pr.`Parent_Message_ID` = a.`Message_ID`), " .
 "`Price`)) AS `__PriceRange`"),
);
April 19th 20 at 12:45
0 answer

Find more questions by tags PHP