From 5d5549c457c4f71098031c183b08c24053f6e291 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 6 Oct 2019 18:06:22 -0400 Subject: [PATCH] remove second sort --- lib/philomena_web/controllers/topic_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/topic_controller.ex b/lib/philomena_web/controllers/topic_controller.ex index 333c01a0..8c03b178 100644 --- a/lib/philomena_web/controllers/topic_controller.ex +++ b/lib/philomena_web/controllers/topic_controller.ex @@ -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()