This is really simple case:
use feature qw/say/;
use File::Glob qw/bsd_glob/;
# got many wav files
say foreach bsd_glob "*.wav";
# got "*.wav" as only result
say foreach sort bsd_glob "*.wav";
say foreach sort bsd_glob("*.wav");
Why sort
keyword has affect on bsd_glob
funtion, and make it behaves like not find the files?