From 496a00a5a8eb4387ff7954090b997b0caf23a1f5 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Thu, 4 Dec 2014 08:53:32 +0100 Subject: [PATCH] Order PdoStorage by date Newest first --- src/DebugBar/Storage/PdoStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DebugBar/Storage/PdoStorage.php b/src/DebugBar/Storage/PdoStorage.php index e7695ef..2e3126b 100644 --- a/src/DebugBar/Storage/PdoStorage.php +++ b/src/DebugBar/Storage/PdoStorage.php @@ -24,7 +24,7 @@ class PdoStorage implements StorageInterface protected $sqlQueries = array( 'save' => "INSERT INTO %tablename% (id, data, meta_utime, meta_datetime, meta_uri, meta_ip, meta_method) VALUES (?, ?, ?, ?, ?, ?, ?)", 'get' => "SELECT data FROM %tablename% WHERE id = ?", - 'find' => "SELECT data FROM %tablename% %where% LIMIT %limit% OFFSET %offset%", + 'find' => "SELECT data FROM %tablename% %where% ORDER BY meta_datetime LIMIT %limit% OFFSET %offset%", 'clear' => "DELETE FROM %tablename%" );