From b830a022f830925c078e2aeaf9343341428988ed Mon Sep 17 00:00:00 2001 From: Jeffrey Warren Date: Tue, 6 Feb 2018 16:09:49 -0500 Subject: [PATCH] Update questions_controller.rb (#2266) --- app/controllers/questions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb index 50709a37d9..08479e2a92 100644 --- a/app/controllers/questions_controller.rb +++ b/app/controllers/questions_controller.rb @@ -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'