How do I sort by the numbers in the file name rather than by the letters?

Discussion related to "Everything" 1.5.
Post Reply
Debugger
Posts: 719
Joined: Thu Jan 26, 2017 11:56 am

How do I sort by the numbers in the file name rather than by the letters?

Post by Debugger »

How do I sort by the numbers in the file name rather than by the letters?

E.g.

abc 126.mp4

jhgf 120.mp4
dedupeit
Posts: 59
Joined: Thu Jul 28, 2022 9:52 pm

Re: How do I sort by the numbers in the file name rather than by the letters?

Post by dedupeit »

I think you'll have to extract that and then sort by the extracted value.

Code: Select all

add-column:a a:=regex.extract(name:,"(\d+)\..*$")
Post Reply