=head1 NAME

Hub::Perl::Sort - 

Part of the L<Hub Library|hublib>

=head1 SYNOPSIS



=head1 DESCRIPTION



=head1 METHODS

=begin html

<table><tr><td>
<a class="methlink" href="#item_anonsort">anonsort</a>

</td><td>
<a class="methlink" href="#item_keydepthsort">keydepthsort</a>

</td></tr></table>

=end html


=over 4

=item anonsort

B<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.




B<Example: Simple (alphabetical) sort>:

    my @months = qw/Jan Feb Mar/;
    my @sorted = anonsort( @months );
    return join ',', @sorted;

B<matches>:

    Feb,Jan,Mar

=back

=over 4

=item keydepthsort

B<>

 Usage: keydepthsort

Sort by keydepth (for processing hashes and making sure parents don't smuther
their children.)

=back

=head1 INTERNAL

=begin html



=end html

=head1 AUTHOR



Ryan Gies

=head1 COPYRIGHT



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

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

=head1 UPDATED

This file created by  on  at 

=cut
