fixed comments. Removed an old comment that no longer made sense.
This commit is contained in:
parent
9e620eaede
commit
8bc408dea1
1 changed files with 0 additions and 2 deletions
|
@ -117,8 +117,6 @@ func labelAndOrder(clusters map[int][]Task, numberOfClusters int, taskObservatio
|
|||
|
||||
// Generic Task Sorter.
|
||||
// Be able to sort an array of tasks based on any of the tasks' resources.
|
||||
|
||||
// Retrieve a sorter (same signature as 'Less' function in sort.Interface) for the given sorting criteria.
|
||||
func SortTasks(ts []Task, sb sortBy) {
|
||||
sort.SliceStable(ts, func (i, j int) bool {
|
||||
return sb(&ts[i]) <= sb(&ts[j])
|
||||
|
|
Reference in a new issue