fix task sorting

This commit is contained in:
DavidBadura 2015-04-06 13:36:55 +00:00
parent d97173569b
commit ec8ab39e7c
1 changed files with 2 additions and 4 deletions

View File

@ -112,7 +112,7 @@ class TaskManager
$this->tasks[$task->getUuid()] = $task;
}
return $result;
return $this->sort($result);
}
/**
@ -121,9 +121,7 @@ class TaskManager
*/
public function filter($filter = null)
{
$tasks = $this->filterAll($filter . ' status:pending');
return $this->sort($tasks);
return $this->filterAll($filter . ' status:pending');
}
/**