WA_MySQLi_Sort Class in rsobjphp
I have a need to sort a recordset based on the value of a checkbox and looking through rsobj.php I found the above mentioned class. So I have the following set up with is working
$sort_rsProductListing = new WA_MySQLi_Sort("rsProductListing","");
if ("" == "") {
$sort_rsProductListing->clearSort();
if(isset($_GET['productListing']) && ($_GET['productListing'] == 0)){
$sort_rsProductListing->setSort("pkCategory, CommonBrandName, SeriesName, SKU, StandardColor","ASC",false,true);
} else {
$sort_rsProductListing->setSort("CommonBrandName, SKU, StandardColor","ASC",false,true);
}
}
but I suspect I am not taking advantage of the full power available, so is there anything I can do to improve on this ?