summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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(',')))