summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-26 07:07:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-26 07:07:17 +0000
commit49222d01fb5c8cd481ab9644813ca9b2db97245a (patch)
treea779eed08a357f7b52fc870bc4ed22706664865b /app
parent54701d0d8982925792afc25f98933828162e72e4 (diff)
downloadredmine-49222d01fb5c8cd481ab9644813ca9b2db97245a.tar.gz
redmine-49222d01fb5c8cd481ab9644813ca9b2db97245a.zip
Default sorting on projects by id is not relevant (#29482).
git-svn-id: http://svn.redmine.org/redmine/trunk@18865 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/project_query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_query.rb b/app/models/project_query.rb
index c0e0e92e7..25ee7a861 100644
--- a/app/models/project_query.rb
+++ b/app/models/project_query.rb
@@ -83,7 +83,7 @@ class ProjectQuery < Query
def results_scope(options={})
order_option = [group_by_sort_order, (options[:order] || sort_clause)].flatten.reject(&:blank?)
- order_option << "#{Project.table_name}.id ASC"
+ order_option << "#{Project.table_name}.lft ASC"
scope = base_scope.
order(order_option).
joins(joins_for_order_statement(order_option.join(',')))