aboutsummaryrefslogtreecommitdiff
path: root/internal/gallery/query_sort.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gallery/query_sort.go')
-rw-r--r--internal/gallery/query_sort.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gallery/query_sort.go b/internal/gallery/query_sort.go
index 7ad811b..1a3a63c 100644
--- a/internal/gallery/query_sort.go
+++ b/internal/gallery/query_sort.go
@@ -18,7 +18,7 @@ func sortQueryPhotos(
}
return photos[i].RelativePath < photos[j].RelativePath
- case SortByDateTime:
+ case SortByDateTaken:
if query.Order == SortAsc {
if !photos[i].DateTaken.Equal(photos[j].DateTaken) {
return photos[i].DateTaken.Before(photos[j].DateTaken)