From 3eda29af9dfbdf267110f8393872832c58865625 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sun, 25 Oct 2026 22:36:14 -0600 Subject: [PATCH] Order by month and day rather than identifier. --- internal/models/birthdays.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/models/birthdays.go b/internal/models/birthdays.go index 8b73e27..47dd27c 100644 --- a/internal/models/birthdays.go +++ b/internal/models/birthdays.go @@ -117,7 +117,8 @@ func (bm *BirthdayModel) ListBirthdays(chatid int64) ([]*Birthday, error) { format('%02d', month), '-', format('%02d', day))) as birthdate from birthdays where - chatid = ?;` + chatid = ? + order by month, day;` err := bm.db.SelectContext(bm.ctx, &bdays, q, chatid) if err != nil {