From ab54924bba31cf2fd795559a11646e0267da014e Mon Sep 17 00:00:00 2001 From: terrtia Date: Mon, 16 Dec 2024 11:15:10 +0100 Subject: [PATCH] fix: [chat explorer] fix protocols name list order --- bin/lib/chats_viewer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/lib/chats_viewer.py b/bin/lib/chats_viewer.py index 4c8cea5e..f46d852a 100755 --- a/bin/lib/chats_viewer.py +++ b/bin/lib/chats_viewer.py @@ -110,6 +110,7 @@ def get_chat_protocols_meta(): for protocol_id in get_chat_protocols(): protocol = ChatProtocol(protocol_id) metas.append(protocol.get_meta(options={'icon'})) + metas = sorted(metas, key=lambda d: d['id']) return metas class ChatProtocol: # TODO first seen last seen ???? + nb by day ????