fix(explorer): fixed hierarchical sorting. Closes #828

This commit is contained in:
Folke Lemaitre 2025-01-31 19:51:44 +01:00
parent 692aeaf131
commit fa32e20e99
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -485,9 +485,9 @@ function M.explorer(opts, ctx)
-- hierarchical sorting
if item.dir then
item.sort = parent.sort .. "/0" .. basename
item.sort = parent.sort .. "!" .. basename .. " "
else
item.sort = parent.sort .. "/1" .. basename
item.sort = parent.sort .. "#" .. basename .. " "
end
if opts.tree then