updated seasons list

This commit is contained in:
2026-02-02 22:39:03 +11:00
parent ef5a0dc078
commit 24bbc5337b
7 changed files with 116 additions and 62 deletions

View File

@@ -63,7 +63,7 @@ func ListSeasons(ctx context.Context, tx bun.Tx, pageOpts *PageOpts) (*SeasonLis
pageOpts.Order = bun.OrderDesc
}
if pageOpts.OrderBy == "" {
pageOpts.OrderBy = "name"
pageOpts.OrderBy = "start_date"
}
seasons := []Season{}
err := tx.NewSelect().