app/models/query/group_by.rb
# Returns the SQL sort order that should be prepended for grouping
Returns the SQL sort order that should be prepended for grouping
Returns the SQL sort order that should be prepended for grouping
def group_by_sort_order
    if query.grouped? && (column = query.group_by_column)
      aliases = include_aliases
      Array(column.sortable).map do |s|
        aliased_group_by_sort_order(s, order_for_group_by(column), aliases[column.name])
      end.join(',')
    end
  end
def group_by_sort_order if query . grouped? && ( column = query . group_by_column ) aliases = include_aliases Array ( column . sortable ) . map do | s | aliased_group_by_sort_order ( s , order_for_group_by ( column ) , aliases [ column . name ] ) end . join ( ',' ) end end
Returns the SQL sort order that should be prepended for grouping
Returns the SQL sort order that should be prepended for grouping