Skip to main content
added 30 characters in body; edited tags; edited title
Source Link

Sort file names (numbered) in dired.

When Dired sorts files by Namename, it sorts in alphbaticalalphabetical order. ThatThat's fine with letters; however, when the file names start with numbers, it would be better to sort in numerical value.

Example:

This is how dired sortsorts my filefiles:

10 11 12 13 ... 1 21 22 23 ... 2 31

I want 1 2 3 4 … 9 10 11 …

Sort file names (numbered) in dired.

When Dired sorts files by Name, it sorts in alphbatical order. That fine with letters; however, when the file names start with numbers, it would be better to sort in numerical value.

Example:

This is how dired sort my file:

10 11 12 13 ... 1 21 22 23 ... 2 31

Sort file names (numbered) in dired

When Dired sorts files by name, it sorts in alphabetical order. That's fine with letters; however, when the file names start with numbers, it would be better to sort in numerical value.

Example:

This is how dired sorts my files:

10 11 12 13 ... 1 21 22 23 ... 2 31

I want 1 2 3 4 … 9 10 11 …

Source Link
Nick
  • 4.6k
  • 4
  • 28
  • 46

Sort file names (numbered) in dired.

When Dired sorts files by Name, it sorts in alphbatical order. That fine with letters; however, when the file names start with numbers, it would be better to sort in numerical value.

Example:

This is how dired sort my file:

10 11 12 13 ... 1 21 22 23 ... 2 31