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"