Skip to content

Commit

Permalink
fix: sorting by modified doesn't work (close #1756)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Sep 23, 2022
1 parent c929888 commit b6d9018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/model/obj.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit b6d9018

Please sign in to comment.