Fixed sorting for popular/downloads sort in relation with bug 282696.

git-svn-id: svn://10.0.0.236/trunk@195784 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mike.morgan%oregonstate.edu 2006-05-01 23:39:54 +00:00
parent 0b1ce1b7f9
commit 1fd034f80d

View File

@ -209,10 +209,10 @@ if (!empty($sql['sort'])) {
$orderby .= " main.Name ASC";
break;
case 'rating':
$orderby .= " main.Rating DESC";
$orderby .= " main.Rating DESC, main.Name ASC";
break;
case 'downloads':
$orderby .= " main.TotalDownloads DESC";
$orderby .= " main.downloadcount DESC, main.Rating DESC";
break;
}
} else {