From 21249013d490c8591451dd2a4b48d365bc3c7779 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 5 Feb 2021 10:49:35 +0000 Subject: [PATCH] [CritFix] Neural: Fix sorting application Thanks to: Gerald Auer --- lualib/plugins/neural.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lualib/plugins/neural.lua b/lualib/plugins/neural.lua index 6f82089a42..433a17ac96 100644 --- a/lualib/plugins/neural.lua +++ b/lualib/plugins/neural.lua @@ -649,7 +649,8 @@ local function process_rules_settings() end -- Generic stuff - table.sort(fun.totable(fun.filter(filter_symbols_predicate, selt.symbols))) + selt.symbols = fun.totable(fun.filter(filter_symbols_predicate, selt.symbols)) + table.sort(selt.symbols) selt.digest = lua_util.table_digest(selt.symbols) selt.prefix = redis_ann_prefix(rule, selt.name) -- 2.47.3