fix: sorting by `modified` doesn't work (close #1756)

pull/1831/head
Noah Hsu 2022-09-23 12:30:32 +08:00
parent c929888e39
commit b6d9018ebd
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}