Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • 2
    On what operating system (Unix? Linux? macOS? something else)? Also, what shell do you use? Bash? Zsh? Something else? And how do you want to sort? Sorting by name and by modification date are two completely separate issues. And what do your file names look at? Do solutions need to be able to deal with arbitrary file names (even really weird ones with newlines)? Or can we assume simple file names with no whitespace or globbing characters? Please edit your question and clarify. Commented Nov 3, 2021 at 10:24