- reverse sort tasks.

This commit is contained in:
gazebo
2018-12-04 17:21:15 +08:00
parent 425bb8a1b1
commit e66a38b20b

View File

@@ -112,7 +112,7 @@ func (s TaskList) Len() int {
}
func (s TaskList) Less(i, j int) bool {
return s[i].GetCreatedAt().Sub(s[j].GetCreatedAt()) < 0
return s[i].GetCreatedAt().Sub(s[j].GetCreatedAt()) > 0
}
func (s TaskList) Swap(i, j int) {