Merge pull request #7553 from opf/fix/30763/stable-sort-for-nulls-manual-position

[30763] Use stable sort for manual position
pull/7572/head
Henriette Dinger 5 years ago committed by GitHub
commit e58bcd7ee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/models/queries/work_packages/columns/manual_sorting_column.rb

@ -34,7 +34,7 @@ class Queries::WorkPackages::Columns::ManualSortingColumn < Queries::WorkPackage
def initialize
super :manual_sorting,
default_order: 'asc',
sortable: "ordered_work_packages.position NULLS LAST"
sortable: "#{OrderedWorkPackage.table_name}.position NULLS LAST, #{WorkPackage.table_name}.id"
end
def sortable_join_statement(query)

Loading…
Cancel
Save