aboutsummaryrefslogtreecommitdiff
path: root/internal/api/query.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/query.go')
-rw-r--r--internal/api/query.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/query.go b/internal/api/query.go
index d79e36a..3468163 100644
--- a/internal/api/query.go
+++ b/internal/api/query.go
@@ -46,7 +46,7 @@ func parseQuery(r *http.Request) (gallery.Query, error) {
if sort := values.Get("sort"); sort != "" {
switch gallery.SortField(sort) {
- case gallery.SortByDateTime, gallery.SortByPath:
+ case gallery.SortByDateTaken, gallery.SortByPath:
query.Sort = gallery.SortField(sort)
default:
return gallery.Query{}, errors.New("invalid sort field")