in reply to Natural Sort / Windows sort problem

You are mistaken. While neither guarantee the order of Windows Explorer, they do not produce the order you claim they do.

$ perl -e' use feature qw( say ); use Sort::Naturally qw( nsort ); say for nsort qw( HC_TalkRoar_1 HC_TalkRoar_1b ); ' HC_TalkRoar_1 HC_TalkRoar_1b
$ perl -e' use feature qw( say ); use Sort::Key::Natural qw( natsort ); say for natsort qw( HC_TalkRoar_1 HC_TalkRoar_1b ); ' HC_TalkRoar_1 HC_TalkRoar_1b

Replies are listed 'Best First'.
Re^2: Natural Sort / Windows sort problem
by cr8josh (Sexton) on Oct 30, 2017 at 17:40 UTC
    Thank you, you helped me find the issue which was not the sorting. Much appreciated! The issue was because of my file extensions. If you add .wav to the end of those two strings, they sort backwards. Filtering out the file extensions solves it.