From f0ca487cd513d50c807e4226a1ee459586f16b08 Mon Sep 17 00:00:00 2001
From: DJ Mountney <david@twkie.net>
Date: Thu, 2 Jun 2016 14:17:46 -0700
Subject: [PATCH] Reorder the todos because the use of the project finder
 attempts to order them differently

---
 app/finders/todos_finder.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/finders/todos_finder.rb b/app/finders/todos_finder.rb
index 6fbe68a720d..1d88116d7d2 100644
--- a/app/finders/todos_finder.rb
+++ b/app/finders/todos_finder.rb
@@ -30,7 +30,7 @@ class TodosFinder
     items = by_state(items)
     items = by_type(items)
 
-    items
+    items.reorder(id: :desc)
   end
 
   private
@@ -84,7 +84,7 @@ class TodosFinder
     if project?
       @projects = project
     else
-      @projects = ProjectsFinder.new.execute(current_user).reorder(nil)
+      @projects = ProjectsFinder.new.execute(current_user)
     end
   end
 
-- 
GitLab