From b3d69b6addd106ac416840399bf7515dfa03ae6d Mon Sep 17 00:00:00 2001
From: joe <joe@autistici.org>
Date: Sun, 1 Dec 2013 11:30:50 +0100
Subject: [PATCH] sort audit logs depending on the timestamp

---
 configdb/db/interface/etcd_interface.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configdb/db/interface/etcd_interface.py b/configdb/db/interface/etcd_interface.py
index b133c99..64f6e12 100644
--- a/configdb/db/interface/etcd_interface.py
+++ b/configdb/db/interface/etcd_interface.py
@@ -214,4 +214,4 @@ class EtcdInterface(base.DbInterface):
 
             if matches:
                 log.append(obj)
-        return log
+        return sorted(log, key=lambda k: k['ts'])
-- 
GitLab