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

This commit is contained in:
Noah Hsu 2022-09-23 12:30:32 +08:00
parent c929888e39
commit b6d9018ebd

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