Added ORDER BY to category tree to ensure db order of children

This commit is contained in:
Asaf Gartner 2021-05-12 02:11:46 +03:00
parent 02938bbf2c
commit a6d931334a
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ func GetFullCategoryTree(ctx context.Context, conn *pgxpool.Pool) CategoryTree {
SELECT $columns
FROM
handmade_category as cat
ORDER BY id ASC
`,
)
if err != nil {