Skip to content

Commit

Permalink
Bug #1286 - the proper sort is dateTaken.
Browse files Browse the repository at this point in the history
  • Loading branch information
hfiguiere committed Aug 20, 2014
1 parent 3d4fb34 commit 8bcdd88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/adapters/DatabaseMySql.php
Original file line number Diff line number Diff line change
Expand Up @@ -1753,9 +1753,9 @@ private function buildQuery($filters, $limit, $offset, $table)
break;
case 'sortBy':
if($value === 'dateTaken,desc')
$sortBy = 'ORDER BY dateSortByDay DESC';
$sortBy = 'ORDER BY dateTaken DESC';
elseif($value === 'dateTaken,asc')
$sortBy = 'ORDER BY dateSortByDay ASC';
$sortBy = 'ORDER BY dateTaken ASC';
elseif($value === 'dateUploaded,desc')
$sortBy = 'ORDER BY dateSortByDay DESC, dateUploaded ASC';
elseif($value === 'dateUploaded,asc')
Expand Down

0 comments on commit 8bcdd88

Please sign in to comment.