NAME
Hub::Perl::Sort -
Part of the Hub Library
SYNOPSIS
DESCRIPTION
METHODS
anonsort | keydepthsort |
- anonsort
-
Anonymous value sort
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
- keydepthsort
-
Usage: keydepthsort
Sort by keydepth (for processing hashes and making sure parents don't smuther their children.)
INTERNAL
AUTHOR
Ryan Gies
COPYRIGHT
Copyright (c) 2006 Livesite Networks, LLC. All rights reserved.
Copyright (c) 2000-2005 Ryan Gies. All rights reserved.
UPDATED
This file created by mkdocs.pl on 8/29/2006 at 2:07pm