Chang sorting
This commit is contained in:
@@ -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']]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user