mod_http_muc_log/mod_http_muc_log.lua
changeset 4681 823370bc2e4c
parent 4680 a2cf3b69a3d6
child 4785 306066898e5f
--- a/mod_http_muc_log/mod_http_muc_log.lua	Sun Sep 12 00:13:32 2021 +0200
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Sun Sep 12 00:28:46 2021 +0200
@@ -461,6 +461,11 @@
 
 	table.sort(room_list, function (a, b)
 		if a.priority ~= b.priority then return a.priority > b.priority; end
+		if a.description ~= nil and b.description == nil then
+			return true;
+		elseif a.description == nil and b.description ~= nil then
+			return false;
+		end
 		return a.jid < b.jid;
 	end);