order origins

This commit is contained in:
nquidox 2026-03-21 16:51:33 +03:00
parent ea57b2f489
commit cafec373f1

View file

@ -23,7 +23,7 @@ func (r *repo) createOrigin(ctx context.Context, origin *Origin) error {
}
func (r *repo) getOrigins(ctx context.Context) ([]Origin, error) {
q := `SELECT * FROM merch_origins WHERE deleted_at IS NULL`
q := `SELECT * FROM merch_origins WHERE deleted_at IS NULL ORDER BY id`
rows, err := r.db.Query(ctx, q)
if err != nil {