From ef641b96ee247372ae20df9ffccd0efc8a62fd06 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 3 Jan 2014 01:23:55 +0000 Subject: [PATCH] Order the keys by the key number so they appear in logical order in the template. --- app/provision/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/provision/index.php b/app/provision/index.php index 0b59f1220a..45a870637c 100644 --- a/app/provision/index.php +++ b/app/provision/index.php @@ -448,6 +448,7 @@ include "resources/classes/template.php"; $sql = "SELECT * FROM v_device_keys "; $sql .= "WHERE device_uuid = '".$device_uuid."' "; $sql .= "AND domain_uuid = '".$_SESSION['domain_uuid']."' "; + $sql .= "ORDER BY device_key_id asc "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED);