Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fixes #1154: Moved sorting function to REST API so tasks are ordered …
Browse files Browse the repository at this point in the history
…by creation time
  • Loading branch information
mareahall committed Sep 20, 2016
1 parent 79bcb1b commit 005272f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mgmt/rest/rbody/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (s *ScheduledTaskListReturned) Len() int {
}

func (s *ScheduledTaskListReturned) Less(i, j int) bool {
return s.ScheduledTasks[i].Name < s.ScheduledTasks[j].Name
return s.ScheduledTasks[j].CreationTime().After(s.ScheduledTasks[i].CreationTime())
}

func (s *ScheduledTaskListReturned) Swap(i, j int) {
Expand Down

0 comments on commit 005272f

Please sign in to comment.