diff --git a/api/calls/get_items.php b/api/calls/get_items.php index 96acebe..970b828 100644 --- a/api/calls/get_items.php +++ b/api/calls/get_items.php @@ -8,7 +8,7 @@ if (!isset($_SESSION['name'])) { require_once 'config/db.php'; -$query = "SELECT * FROM items"; +$query = "SELECT * FROM items ORDER BY date ASC"; $stmt = $pdo->prepare($query); $stmt->execute();