Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDJ Mountney <david@twkie.net>2016-06-03 00:17:46 +0300
committerDJ Mountney <david@twkie.net>2016-06-03 00:17:46 +0300
commitf0ca487cd513d50c807e4226a1ee459586f16b08 (patch)
tree3e19fa895d9ab1f77446589eff7c4fadd36301f2 /app
parent14a9b0d7dda78e88852644bd9a6c05922b5e367d (diff)
Reorder the todos because the use of the project finder attempts to order them differently
Diffstat (limited to 'app')
-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