days: use basename as tie-breaker (#985)

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/1010/head
Varun Patil 2024-01-09 19:55:12 -08:00
parent a071cdbc13
commit 0604ee1d14
1 changed files with 2 additions and 1 deletions

View File

@ -130,7 +130,8 @@ trait TimelineQueryDays
// 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);