From 4551dff93da65536d4772b3b175e9c7789469aa7 Mon Sep 17 00:00:00 2001 From: Olov Danielson Date: Mon, 25 Jan 2010 17:00:42 +0000 Subject: [PATCH] Use order by to know order of yubikeys --- ykval-export.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykval-export.php b/ykval-export.php index 45245ac..f2ee54b 100755 --- a/ykval-export.php +++ b/ykval-export.php @@ -21,7 +21,7 @@ if (!$db->connect()) { exit(1); } -$result=$db->customQuery("SELECT active, created, modified, yk_publicname, yk_counter, yk_use, yk_low, yk_high, nonce, notes FROM yubikeys"); +$result=$db->customQuery("SELECT active, created, modified, yk_publicname, yk_counter, yk_use, yk_low, yk_high, nonce, notes FROM yubikeys ORDER BY yk_publicname"); while($row = $result->fetch(PDO::FETCH_ASSOC)){ echo $row['active'] . "\t" . $row['created'] .