From 9554423d4fd24df3a1857d59f61fc2179c4452a6 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Mon, 30 Jun 2014 11:56:40 -0500 Subject: [PATCH] tag pages should be ordered by created_at, not hotness --- app/controllers/home_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index b19f1d9..3b63979 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -266,7 +266,7 @@ private end order = "hotness" - if how[:newest] || how[:recent] + if how[:newest] || how[:recent] || how[:tag] order = "stories.created_at DESC" elsif how[:top] order = "(CAST(upvotes AS integer) - CAST(downvotes AS integer)) DESC"