The same input, two different orders
Alphabetical file1 file10 file2
Natural file1 file2 file10
Pick the rule that matches the meaning
- Natural sort: numbered filenames and labels.
- Numeric sort: whole values such as -3, 2.5 and 4e2.
- Length sort: shortest to longest by Unicode code point count.
- Case-insensitive sort: mixed uppercase and lowercase names.
- IPv4 sort: dotted-decimal network addresses.
Sorting preserves text
Natural comparison does not rename file02 to file2 or strip leading zeros. Equal keys keep their source order. Removing duplicates is a separate option, and equivalent sort keys do not automatically mean equal text.
Dates and versions need their own rules
Mixed date formats, decimal labels and semantic versions are not reliably ordered by a generic natural comparator. Normalize dates to a consistent sortable format, or use a dedicated parser when the meaning of each field matters.
Try a real filename workflow
Use the natural sorter to load an example, or read the filename sorting guide before preparing an export.