Is there some limit to how many items can be sorted in a directory? #2069
-
I have a directory with thousands of files. This is where I wanted to find "10xx" size files for #1098 (comment), so I sorted it by size. Nothing happened. Same for extension. So it's basically a bug unless there is a limit to how many items So I then manually started scrolling, found one, confirmed that it looks good, and generated a file with that exact size instead. Sorting does work for a small amount of files. Seems like around 4000 is sortable, but around 8000 is not. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sorting is done in this function: There shouldn't be any limit to the number of files. I'm not sure why sorting (done by |
Beta Was this translation helpful? Give feedback.
Sorting is done in this function:
lf/nav.go
Line 224 in b0c3f8d
There shouldn't be any limit to the number of files. I'm not sure why sorting (done by
set sortby ...
) doesn't work for you - you can try debugging to see if that function is actually being called or not.