From b6d9018ebd4dbe1e61e7f150152b855a348d6b78 Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Fri, 23 Sep 2022 12:30:32 +0800 Subject: [PATCH] fix: sorting by `modified` doesn't work (close #1756) --- internal/model/obj.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/model/obj.go b/internal/model/obj.go index 543b95a1..84af9251 100644 --- a/internal/model/obj.go +++ b/internal/model/obj.go @@ -58,7 +58,7 @@ func SortFiles(objs []Obj, orderBy, orderDirection string) { } return objs[i].GetSize() <= objs[j].GetSize() } - case "updated_at": + case "modified": if orderDirection == "desc" { return objs[i].ModTime().After(objs[j].ModTime()) }