From 5e66bc83b66fdce0c37873823e64977b9653d5d6 Mon Sep 17 00:00:00 2001 From: Roman Pyrih Date: Mon, 26 Jan 2026 14:48:03 +0100 Subject: [PATCH] Chang sorting --- api/salony/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/salony/index.php b/api/salony/index.php index cc816ef..f318130 100644 --- a/api/salony/index.php +++ b/api/salony/index.php @@ -22,7 +22,7 @@ try { $places = $pdo->query(" SELECT id, name, woj FROM salon_places - ORDER BY id ASC + ORDER BY woj ASC, name ASC ")->fetchAll(); $result = []; @@ -34,7 +34,7 @@ foreach ($places as $place) { SELECT address, open_hours, url_address, url_shop, lat, lng FROM shops WHERE place_id = ? - ORDER BY id ASC + ORDER BY address ASC "); $stmt->execute([$place['id']]);