public function sort(array $p_params)
{
$search = $this->getSearchObject();
foreach ($p_params as $k => $v) {
switch ($k) {
case 1:
case 2:
$colName = 'NAME';
break;
case 3:
$colName = 'MINOR_NEWSCOOP_VERSION';
break;
default:
continue 2;
}
$sortMethod = $v == 'asc' ? 'orderAscending' : 'orderDescending';
$search->{$colName}->{$sortMethod}();
}
}