diff --git a/lib/philomena_web/controllers/fingerprint_profile/source_change_controller.ex b/lib/philomena_web/controllers/fingerprint_profile/source_change_controller.ex index cfeaece2..babf3de5 100644 --- a/lib/philomena_web/controllers/fingerprint_profile/source_change_controller.ex +++ b/lib/philomena_web/controllers/fingerprint_profile/source_change_controller.ex @@ -11,7 +11,7 @@ defmodule PhilomenaWeb.FingerprintProfile.SourceChangeController do source_changes = SourceChange |> where(fingerprint: ^fingerprint) - |> order_by(desc: :created_at) + |> order_by(desc: :id) |> preload([:user, image: [:user, :tags]]) |> Repo.paginate(conn.assigns.scrivener) diff --git a/lib/philomena_web/controllers/fingerprint_profile/tag_change_controller.ex b/lib/philomena_web/controllers/fingerprint_profile/tag_change_controller.ex index af698483..0867a76f 100644 --- a/lib/philomena_web/controllers/fingerprint_profile/tag_change_controller.ex +++ b/lib/philomena_web/controllers/fingerprint_profile/tag_change_controller.ex @@ -13,7 +13,7 @@ defmodule PhilomenaWeb.FingerprintProfile.TagChangeController do |> where(fingerprint: ^fingerprint) |> added_filter(params) |> preload([:tag, :user, image: [:user, :tags]]) - |> order_by(desc: :created_at) + |> order_by(desc: :id) |> Repo.paginate(conn.assigns.scrivener) render(conn, "index.html", diff --git a/lib/philomena_web/controllers/image/source_change_controller.ex b/lib/philomena_web/controllers/image/source_change_controller.ex index bfa16d7d..5e64c465 100644 --- a/lib/philomena_web/controllers/image/source_change_controller.ex +++ b/lib/philomena_web/controllers/image/source_change_controller.ex @@ -16,7 +16,7 @@ defmodule PhilomenaWeb.Image.SourceChangeController do SourceChange |> where(image_id: ^image.id) |> preload([:user, image: [:user, :tags]]) - |> order_by(desc: :created_at) + |> order_by(desc: :id) |> Repo.paginate(conn.assigns.scrivener) render(conn, "index.html", diff --git a/lib/philomena_web/controllers/image/tag_change_controller.ex b/lib/philomena_web/controllers/image/tag_change_controller.ex index f0f10142..fe277642 100644 --- a/lib/philomena_web/controllers/image/tag_change_controller.ex +++ b/lib/philomena_web/controllers/image/tag_change_controller.ex @@ -17,7 +17,7 @@ defmodule PhilomenaWeb.Image.TagChangeController do |> where(image_id: ^image.id) |> added_filter(params) |> preload([:tag, :user, image: [:user, :tags]]) - |> order_by(desc: :created_at) + |> order_by(desc: :id) |> Repo.paginate(conn.assigns.scrivener) render(conn, "index.html", diff --git a/lib/philomena_web/controllers/ip_profile/source_change_controller.ex b/lib/philomena_web/controllers/ip_profile/source_change_controller.ex index c470d1b1..46493d7f 100644 --- a/lib/philomena_web/controllers/ip_profile/source_change_controller.ex +++ b/lib/philomena_web/controllers/ip_profile/source_change_controller.ex @@ -13,7 +13,7 @@ defmodule PhilomenaWeb.IpProfile.SourceChangeController do source_changes = SourceChange |> where(ip: ^ip) - |> order_by(desc: :created_at) + |> order_by(desc: :id) |> preload([:user, image: [:user, :tags]]) |> Repo.paginate(conn.assigns.scrivener) diff --git a/lib/philomena_web/controllers/ip_profile/tag_change_controller.ex b/lib/philomena_web/controllers/ip_profile/tag_change_controller.ex index 3899cf24..304aa89a 100644 --- a/lib/philomena_web/controllers/ip_profile/tag_change_controller.ex +++ b/lib/philomena_web/controllers/ip_profile/tag_change_controller.ex @@ -15,7 +15,7 @@ defmodule PhilomenaWeb.IpProfile.TagChangeController do |> where(ip: ^ip) |> added_filter(params) |> preload([:tag, :user, image: [:user, :tags]]) - |> order_by(desc: :created_at) + |> order_by(desc: :id) |> Repo.paginate(conn.assigns.scrivener) render(conn, "index.html", diff --git a/lib/philomena_web/controllers/profile/source_change_controller.ex b/lib/philomena_web/controllers/profile/source_change_controller.ex index 521b8616..85bc4c39 100644 --- a/lib/philomena_web/controllers/profile/source_change_controller.ex +++ b/lib/philomena_web/controllers/profile/source_change_controller.ex @@ -26,7 +26,7 @@ defmodule PhilomenaWeb.Profile.SourceChangeController do sc.user_id == ^user.id and not (i.user_id == ^user.id and i.anonymous == true) ) |> preload([:user, image: [:user, :tags]]) - |> order_by(desc: :created_at) + |> order_by(desc: :id) |> Repo.paginate(conn.assigns.scrivener) render(conn, "index.html", diff --git a/lib/philomena_web/controllers/profile/tag_change_controller.ex b/lib/philomena_web/controllers/profile/tag_change_controller.ex index 1254dadd..2efd2fd4 100644 --- a/lib/philomena_web/controllers/profile/tag_change_controller.ex +++ b/lib/philomena_web/controllers/profile/tag_change_controller.ex @@ -22,7 +22,7 @@ defmodule PhilomenaWeb.Profile.TagChangeController do ) |> added_filter(params) |> preload([:tag, :user, image: [:user, :tags]]) - |> order_by(desc: :created_at) + |> order_by(desc: :id) |> Repo.paginate(conn.assigns.scrivener) render(conn, "index.html", diff --git a/lib/philomena_web/controllers/tag/tag_change_controller.ex b/lib/philomena_web/controllers/tag/tag_change_controller.ex index 1313ec83..7de1a0fb 100644 --- a/lib/philomena_web/controllers/tag/tag_change_controller.ex +++ b/lib/philomena_web/controllers/tag/tag_change_controller.ex @@ -17,7 +17,7 @@ defmodule PhilomenaWeb.Tag.TagChangeController do |> where(tag_id: ^tag.id) |> added_filter(params) |> preload([:tag, :user, image: [:user, :tags]]) - |> order_by(desc: :created_at) + |> order_by(desc: :id) |> Repo.paginate(conn.assigns.scrivener) render(conn, "index.html",