mirror of
https://github.com/pi-hole/web.git
synced 2026-04-23 18:29:43 +01:00
Order suggested clients by firstSeen (most recent on top).
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -209,7 +209,7 @@ if ($_POST['action'] == 'get_groups') {
|
||||
$QUERYDB = getQueriesDBFilename();
|
||||
$FTLdb = SQLite3_connect($QUERYDB);
|
||||
|
||||
$query = $FTLdb->query('SELECT DISTINCT id,hwaddr,macVendor FROM network;');
|
||||
$query = $FTLdb->query('SELECT DISTINCT id,hwaddr,macVendor FROM network ORDER BY firstSeen DESC;');
|
||||
if (!$query) {
|
||||
throw new Exception('Error while querying FTL\'s database: ' . $db->lastErrorMsg());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user