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']]);