diff --git a/UI_V2/dbActions/products.py b/UI_V2/dbActions/products.py index b837822..2d98c32 100644 --- a/UI_V2/dbActions/products.py +++ b/UI_V2/dbActions/products.py @@ -69,7 +69,7 @@ class Products: with sqlite3.connect(self.db_path) as conn: cursor = conn.cursor() cursor.execute(""" - SELECT * FROM products + SELECT * FROM products ORDER BY name ASC; """) rows = cursor.fetchall() if rows: @@ -99,6 +99,7 @@ class Products: cursor.execute(""" SELECT * FROM products WHERE category_id = ? + ORDER BY name ASC; """, (category_id,)) rows = cursor.fetchall() if rows: