Gets topic sorting information based on an integer code.
$sortby: One of the following integers indicating the sort criteria:
An array with the following values:
function _forum_get_topic_order($sortby) {
switch ($sortby) {
case 1:
return array(
'field' => 'f.last_comment_timestamp',
'sort' => 'desc',
);
break;
case 2:
return array(
'field' => 'f.last_comment_timestamp',
'sort' => 'asc',
);
break;
case 3:
return array(
'field' => 'f.comment_count',
'sort' => 'desc',
);
break;
case 4:
return array(
'field' => 'f.comment_count',
'sort' => 'asc',
);
break;
}
}