Commit b381f86c4133bff22a9352a9a7859264147dc521
1 parent
1a8b4118
Exists in
master
and in
7 other branches
Order ranking by position
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/proposals_discussion_plugin/proposals_holder.rb
... | ... | @@ -41,7 +41,7 @@ class ProposalsDiscussionPlugin::ProposalsHolder < Folder |
41 | 41 | end |
42 | 42 | |
43 | 43 | def ranking |
44 | - ProposalsDiscussionPlugin::RankingItem.joins(:proposal => :parent).where('parents_articles.id' => self.id) | |
44 | + ProposalsDiscussionPlugin::RankingItem.joins(:proposal => :parent).where('parents_articles.id' => self.id).order(:position) | |
45 | 45 | end |
46 | 46 | |
47 | 47 | def compute_ranking | ... | ... |