-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sort output of readdir #24626
Comments
I would propose adding a |
I will prepare a PR if no one minds. |
"on linux it is sorted, but not on windows" Yes, e.g. for ls, but besides asking for differents sorts, e.g. by time, I also see: "-U do not sort; list entries in directory order" In case that's the order actually stored in, and tiny bit faster, you could default to it, with sort=false? |
"Huge bug uncovered ... because different operating systems sort files differently and the published scripts don’t handle it well." !!! |
👍 That story pretty much demolished the somewhat weak (imo) arguments against doing this. |
on linux it is sorted, but not on windows. for cross-platform compatibility, might want to sort it on windows.
The text was updated successfully, but these errors were encountered: