tag pages should be ordered by created_at, not hotness

This commit is contained in:
joshua stein 2014-06-30 11:56:40 -05:00
parent 78f4da6699
commit 9554423d4f

View file

@ -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"