Help for this page

Select Code to Download


  1. or download this
    @filesImage = sort { $a->{name} cmp $b->{name} } @filesImage;
    @filesAudio = sort { $a->{name} cmp $b->{name} } @filesAudio;
    @filesText = sort { $a->{name} cmp $b->{name} } @filesText;
    @filesUnknown = sort { $a->{name} cmp $b->{name} } @filesUnknown;
    @filesDirectory = sort { $a->{name} cmp $b->{name} } @filesDirectory;
    
  2. or download this
    foreach (\@list1, \@list2) {
      @$_ = sort {$a cmp $b} @$_;
    }