summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Mountney <david@twkie.net>2016-06-02 14:17:46 -0700
committerDJ Mountney <david@twkie.net>2016-06-02 14:17:46 -0700
commitf0ca487cd513d50c807e4226a1ee459586f16b08 (patch)
tree3e19fa895d9ab1f77446589eff7c4fadd36301f2
parent14a9b0d7dda78e88852644bd9a6c05922b5e367d (diff)
downloadgitlab-ce-f0ca487cd513d50c807e4226a1ee459586f16b08.tar.gz
Reorder the todos because the use of the project finder attempts to order them differently
-rw-r--r--app/finders/todos_finder.rb4
1 files 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