Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: RFC: I rewrote a custom sort function, but not sure if it is the best way.

by Lady_Aleena (Chaplain)
on Mar 03, 2013 at 07:47 UTC ( #1021487=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $movie (sort { my_article_sort($a->{title},$b->{title}) values 
    +%movies} { ... }
    for my $alpha (sort { my_article_sort($a,$b) } keys %alpha_movies) { .
    +.. }
    ...
    for my $color (sort { my_article_sort($a->{name},$b->{name}) values %c
    +olors} { ... }
    
    my @files = (map("$data_dir$_",grep(/txt$/,sort { my_article_sort($a,$
    +b) } readdir($directory))));
    
  2. or download this
    package Base::Sorts;
    use strict;
    ...
        die "A sort type was not selected.";
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021487]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (14)
As of 2014-09-23 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (225 votes), past polls