From ec8ab39e7c1671ccf5bfe9aeb6bf18f624067142 Mon Sep 17 00:00:00 2001 From: DavidBadura Date: Mon, 6 Apr 2015 13:36:55 +0000 Subject: [PATCH] fix task sorting --- src/TaskManager.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/TaskManager.php b/src/TaskManager.php index e54c5f5..8e60a6f 100644 --- a/src/TaskManager.php +++ b/src/TaskManager.php @@ -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'); } /**