mirror of
https://github.com/mpv-player/mpv
synced 2025-01-28 02:23:06 +00:00
TOOLS/lua/autoload.lua: actually sort files case insensitive
Regression since 8996f79edb
.
Closes #4398
This commit is contained in:
parent
1cab4b6075
commit
95d5fe1626
@ -82,7 +82,8 @@ function find_and_add_entries()
|
||||
local len = string.len(a) - string.len(b)
|
||||
if len ~= 0 then -- case for ordering filename ending with such as X.Y.Z
|
||||
local ext = string.len(get_extension(a)) + 1
|
||||
return string.sub(a, 1, -ext) < string.sub(b, 1, -ext)
|
||||
a = string.sub(a, 1, -ext)
|
||||
b = string.sub(b, 1, -ext)
|
||||
end
|
||||
return string.lower(a) < string.lower(b)
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user