mirror of https://github.com/Xhofe/alist
fix: sorting by `modified` doesn't work (close #1756)
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…
Reference in New Issue