From 138cea45d54518610c2878730cf89b7237e51b31 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Thu, 5 Jan 2023 21:59:15 +0100 Subject: [PATCH] Make `dirwatch` sorting compatible with what `file_bisect` expects (#1300) The result of `a.filename < b.filename` is sometimes different from `system.path_compare(a.filename, a.type, b.filename, b.type)` which causes issues to `file_bisect`, as it expects the sorting to be done with `system.path_compare`. --- data/core/dirwatch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/dirwatch.lua b/data/core/dirwatch.lua index 059291f1..e3b6d61c 100644 --- a/data/core/dirwatch.lua +++ b/data/core/dirwatch.lua @@ -166,7 +166,7 @@ end local function compare_file(a, b) - return a.filename < b.filename + return system.path_compare(a.filename, a.type, b.filename, b.type) end