Skip to content

Commit

Permalink
days: use basename as tie-breaker (#985)
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <radialapps@gmail.com>
  • Loading branch information
pulsejet committed Jan 10, 2024
1 parent a071cdb commit 0604ee1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Db/TimelineQueryDays.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ public function getDay(

// Group and sort by date taken
$query->orderBy('m.datetaken', 'DESC');
$query->addOrderBy('m.fileid', 'DESC'); // tie-breaker
$query->addOrderBy('basename', 'DESC'); // https://github.com/pulsejet/memories/issues/985
$query->addOrderBy('m.fileid', 'DESC'); // unique tie-breaker

// Apply all transformations
$this->applyAllTransforms($queryTransforms, $query, false);
Expand Down

0 comments on commit 0604ee1

Please sign in to comment.