Hub::Perl::Sort

- NAME
- SYNOPSIS
- DESCRIPTION
- METHODS
- INTERNAL
- AUTHOR
- COPYRIGHT
- UPDATED

# NAME

Hub::Perl::Sort -

Part of the Hub Library

Top

# SYNOPSIS

Top

# DESCRIPTION

Top

# 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.)

Top

# INTERNAL

Top

# AUTHOR

Ryan Gies

Top

# COPYRIGHT

Copyright (c) 2006 Livesite Networks, LLC. All rights reserved.

Copyright (c) 2000-2005 Ryan Gies. All rights reserved.

Top

# UPDATED

This file created by on at

Top