tag pages should be ordered by created_at, not hotness
This commit is contained in:
parent
78f4da6699
commit
9554423d4f
|
@ -266,7 +266,7 @@ private
|
||||||
end
|
end
|
||||||
|
|
||||||
order = "hotness"
|
order = "hotness"
|
||||||
if how[:newest] || how[:recent]
|
if how[:newest] || how[:recent] || how[:tag]
|
||||||
order = "stories.created_at DESC"
|
order = "stories.created_at DESC"
|
||||||
elsif how[:top]
|
elsif how[:top]
|
||||||
order = "(CAST(upvotes AS integer) - CAST(downvotes AS integer)) DESC"
|
order = "(CAST(upvotes AS integer) - CAST(downvotes AS integer)) DESC"
|
||||||
|
|
Loading…
Reference in a new issue