fix: sorting by modified
doesn't work (close #1756)
This commit is contained in:
parent
c929888e39
commit
b6d9018ebd
@ -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())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user