From 3eee09c1428d31badf17d7d4d38766f8c7c28db3 Mon Sep 17 00:00:00 2001 From: zafer Date: Mon, 3 Jun 2024 14:37:18 +0300 Subject: [PATCH] order show videos by inserted desc --- lib/algora/library.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/algora/library.ex b/lib/algora/library.ex index b69b93b..8821dea 100644 --- a/lib/algora/library.ex +++ b/lib/algora/library.ex @@ -593,6 +593,7 @@ defmodule Algora.Library do }, where: v.show_id in ^ids ) + |> order_by_inserted(:desc) |> Repo.all() end