Skip to content

Commit

Permalink
Update questions_controller.rb (publiclab#2266)
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored and Souravirus committed Mar 12, 2018
1 parent 745b093 commit b830a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/questions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def unanswered
.includes(:answers)
.references(:answers)
.where(answers: { id: nil })
.order('answers.created_at DESC')
.order('node.nid DESC')
.group('node.nid')
.paginate(page: params[:page], per_page: 24)
render template: 'questions/index'
Expand Down

0 comments on commit b830a02

Please sign in to comment.