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`.
This commit is contained in:
parent
d86413cc30
commit
138cea45d5
|
@ -166,7 +166,7 @@ end
|
||||||
|
|
||||||
|
|
||||||
local function compare_file(a, b)
|
local function compare_file(a, b)
|
||||||
return a.filename < b.filename
|
return system.path_compare(a.filename, a.type, b.filename, b.type)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue