From f097225eecef8a4fbaf5b4157e11dd78acb61ef9 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 30 Mar 2020 19:18:30 -0700 Subject: [PATCH] wrong sort column --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 9d0ecfc..bd6e9a1 100644 --- a/index.php +++ b/index.php @@ -153,7 +153,7 @@ foreach($showlist as $section) { echo str_replace(' ', ' ', $rstr), "\n"; $dbname = $cfgdir.'/'.GetCFGValue('dash_sql_filename'); $db = new SQLite3($dbname, SQLITE3_OPEN_READONLY); - $ss = 'SELECT callsign,sfx,module,reflector,strftime("%s","now")-lasttime FROM LHEARD ORDER BY 4 LIMIT '.GetCFGValue('dash_lastheard_count').' '; + $ss = 'SELECT callsign,sfx,module,reflector,strftime("%s","now")-lasttime FROM LHEARD ORDER BY 5 LIMIT '.GetCFGValue('dash_lastheard_count').' '; if ($stmnt = $db->prepare($ss)) { if ($result = $stmnt->execute()) { while ($row = $result->FetchArray(SQLITE3_NUM)) {