Skip to content

Commit

Permalink
Merge pull request #540 from FreshPorts/537-sort-by-category-results-…
Browse files Browse the repository at this point in the history
…are-not-by-category

When sorting, use the correct sort field and ordering
  • Loading branch information
dlangille authored Jan 20, 2024
2 parents a7008f5 + 30574f9 commit d956fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -564,11 +564,11 @@ function WildCardQuery($db, $stype, $Like, $query) {
switch ($orderbyupdown) {
case ORDERBYDESCENDING:
default:
$sqlOrderBy = "\n ORDER BY C.name desc, E.name";
$sqlOrderBy = "\n ORDER BY C.name DESC, E.name DESC";
break;

case ORDERBYASCENDING:
$sqlOrderBy = "\n ORDER BY commit_date_raw DESC, commit_log_id, C.name, E.name";
$sqlOrderBy = "\n ORDER BY C.name ASC, E.name ASC";
break;
}
break;
Expand Down

0 comments on commit d956fa5

Please sign in to comment.