Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by Lady_Aleena (Priest)
on Mar 03, 2013 at 07:47 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1021487]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-24 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found