mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00:00
TOOLS: autoload.lua: sort files case insensitive
Suggested by a user. The suggested code which was added her comes from PIL.
This commit is contained in:
parent
d8dd4b6c39
commit
f51952441e
@ -28,7 +28,9 @@ function find_and_add_entries()
|
||||
if files == nil then
|
||||
return
|
||||
end
|
||||
table.sort(files)
|
||||
table.sort(files, function (a, b)
|
||||
return string.lower(a) < string.lower(b)
|
||||
end)
|
||||
if dir == "." then
|
||||
dir = ""
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user