Changeset

3537:7d6fb9570395

mod_csi_muc_priorities: Sort list of JIDs Finding anything is easier if it's not randomized by hash table order
author Kim Alvefur <zash@zash.se>
date Mon, 01 Apr 2019 08:40:22 +0200
parents 3536:eed657091329
children 3538:946902fa4088
files mod_csi_muc_priorities/mod_csi_muc_priorities.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_csi_muc_priorities/mod_csi_muc_priorities.lua	Mon Apr 01 08:23:56 2019 +0200
+++ b/mod_csi_muc_priorities/mod_csi_muc_priorities.lua	Mon Apr 01 08:40:22 2019 +0200
@@ -68,6 +68,7 @@
 		for jid in pairs(prioritized_jids) do
 			table.insert(unimportant, jid);
 		end
+		table.sort(unimportant);
 	end
 	return { unimportant = unimportant };
 end, function(fields, form_err, data)