remove second sort

This commit is contained in:
byte[] 2019-10-06 18:06:22 -04:00
parent 6a741d1b2c
commit 5d5549c457

View file

@ -20,7 +20,7 @@ defmodule PhilomenaWeb.TopicController do
posts =
Post
|> where(topic_id: ^conn.assigns.topic.id)
|> order_by(asc: :created_at, asc: :id)
|> order_by(asc: :created_at)
|> preload([:user, topic: :forum])
|> limit(25)
|> Repo.all()