Add order to voted headings names
This commit is contained in:
@@ -128,7 +128,7 @@ class User < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def headings_voted_within_group(group)
|
||||
Budget::Heading.where(id: voted_investments.by_group(group).pluck(:heading_id))
|
||||
Budget::Heading.order("name").where(id: voted_investments.by_group(group).pluck(:heading_id))
|
||||
end
|
||||
|
||||
def voted_investments
|
||||
|
||||
Reference in New Issue
Block a user