Added ORDER BY to category tree to ensure db order of children
This commit is contained in:
parent
02938bbf2c
commit
a6d931334a
|
@ -67,6 +67,7 @@ func GetFullCategoryTree(ctx context.Context, conn *pgxpool.Pool) CategoryTree {
|
||||||
SELECT $columns
|
SELECT $columns
|
||||||
FROM
|
FROM
|
||||||
handmade_category as cat
|
handmade_category as cat
|
||||||
|
ORDER BY id ASC
|
||||||
`,
|
`,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue