David Blume commited on 2016-09-13 08:21:27
Showing 1 changed files, with 1 additions and 1 deletions.
... | ... |
@@ -53,7 +53,7 @@ $headers = array("key ","value ","created ","updated ", |
53 | 53 |
echo implode("\t", $headers)."\n"; |
54 | 54 |
$headers = array("-------------","--------------","------------","------------","------------"); |
55 | 55 |
echo implode("\t", $headers)."\n"; |
56 |
-$result = $db->query('SELECT * FROM keys', PDO::FETCH_ASSOC); |
|
56 |
+$result = $db->query('SELECT * FROM keys ORDER BY updated DESC', PDO::FETCH_ASSOC); |
|
57 | 57 |
foreach($result as $row) { |
58 | 58 |
// print_r( $row ); |
59 | 59 |
$row['k'] = str_pad($row['k'], 12); |
60 | 60 |