From b70c74634476a3e8c1327fa20580ffca87e8a846 Mon Sep 17 00:00:00 2001
From: thomasklein <thomasklein@sch.bme.hu>
Date: Sun, 3 Sep 2023 08:39:41 +0000
Subject: [PATCH] Update file db.go

---
 db/db.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/db/db.go b/db/db.go
index 174cf55..4919af9 100644
--- a/db/db.go
+++ b/db/db.go
@@ -240,7 +240,7 @@ func GetProducts() ([]*Product, error) {
 func GetAvailableProducts() ([]*Product, error) {
 	var products []*Product
 
-	e := db.Model(&products).Where("Price > ? AND Buyable = ?", 0, true).Select()
+	e := db.Model(&products).Where("Price > ? AND Buyable = ?", 0, true).Order("Name").Select()
 
 	return products, e
 }
-- 
GitLab