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:
Guldoman 2023-01-05 21:59:15 +01:00 committed by GitHub
parent b3937b0380
commit 72c0ad768e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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