Hub::Perl::Sort -
Part of the Hub Library
anonsort | keydepthsort |
Usage: anonsort [OPTIONS], \ARRAY
OPTIONS:
-on keyname Only sort subhashes with this keyname.
-cmp (<=>|cmp) Comparison type (default is 'cmp'.) -asr (0|1) Return a reference to the result array.
-modify (0|1) Modify the provided array.
Example: Simple (alphabetical) sort:
my @months = qw/Jan Feb Mar/; my @sorted = anonsort( \@months ); return join ',', @sorted;
matches:
Feb,Jan,Mar
Usage: keydepthsort
Sort by keydepth (for processing hashes and making sure parents don't smuther their children.)
Ryan Gies
Copyright (c) 2006 Livesite Networks, LLC. All rights reserved.
Copyright (c) 2000-2005 Ryan Gies. All rights reserved.
This file created by mkdocs.pl on 8/29/2006 at 2:07pm