Add deterministic tiebreaker to contacts sort order

This commit is contained in:
Graham McIntire 2026-04-05 09:27:34 -05:00
parent d1b1b4cc7e
commit 7fd8f3165c
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -24,7 +24,7 @@ defmodule Microwaveprop.Radio do
entries =
base_query
|> order_by([q], [{^sort_dir, field(q, ^sort_field)}])
|> order_by([q], [{^sort_dir, field(q, ^sort_field)}, {^sort_dir, q.id}])
|> limit(^@per_page)
|> offset(^offset)
|> Repo.all()