liquid_feedback_frontend
diff app/main/event/_list.lua @ 509:d97be0729c53
Fixed order of initiatives in event listing
author | bsw |
---|---|
date | Sun Mar 25 23:23:20 2012 +0200 (2012-03-25) |
parents | 1b147b265547 |
children | 63d6549cc00b |
line diff
1.1 --- a/app/main/event/_list.lua Fri Mar 23 12:41:23 2012 +0100 1.2 +++ b/app/main/event/_list.lua Sun Mar 25 23:23:20 2012 +0200 1.3 @@ -214,7 +214,7 @@ 1.4 if not event.initiative_id then 1.5 local initiatives_selector = Initiative:new_selector() 1.6 :add_where{ "initiative.issue_id = ?", event.issue_id } 1.7 - :add_order_by("initiative.rank, initiative.supporter_count") 1.8 + :add_order_by("initiative.rank, initiative.supporter_count DESC") 1.9 execute.view{ module = "initiative", view = "_list", params = { 1.10 issue = event.issue, 1.11 initiatives_selector = initiatives_selector,