NAME

Data::Range::Compare::Stream::Sort - Low level sort functions

SYNOPSIS

  use Data::Range::Compare::Stream;
  use Data::Range::Compare::Stream::Sort;

  my @ranges;
  push @ranges,Data::Range::Compare::Stream->new(0,0);
  push @ranges,Data::Range::Compare::Stream->new(6,7);
  push @ranges,Data::Range::Compare::Stream->new(1,2);

  # low level sort functions 
  my @sorted_in_consolidate_asc_order=sort sort_in_consolidate_order_asc @ranges;
  my @sorted_in_consolidate_order_desc=sort sort_in_consolidate_order_desc @ranges;
  my @sorted_largest_range_end_first=sort sort_largest_range_end_first @ranges;
  my @sorted_smallest_range_start_first=sort sort_smallest_range_start_first @ranges;
  my @sorted_smallest_range_end_first=sort sort_smallest_range_end_first @ranges;
  my @sorted_largest_range_start_first=sort sort_largest_range_start_first @ranges;

DESCRIPTION

This module defines the sort functions usable by by a list of objects that implement or extend Data::Range::Compare::Stream.

The following sort functions are exported by default

    sort_in_presentation_order
      Function for sorting ranges in a very human readable fashion

    sort_in_consolidate_order_asc
      Function for sorting ranges in asc order for consolidation

    sort_in_consolidate_order_desc
      Function for sorting ranges in desc order for consolidation

    sort_largest_range_end_first
      Function for sorting ranges by smallest range end first

    sort_smallest_range_start_first
      Function for sorting ranges by smallest range start first

    sort_smallest_range_end_first
      Function for sorting ranges by smallest range end first

    sort_largest_range_start_first
       Function for sorting ranges by largest range end first

SEE ALSO

Data::Range::Compare::Stream::Cookbook

AUTHOR

Michael Shipper

Source-Forge Project

As of version 0.001 the Project has been moved to Source-Forge.net

Data Range Compare https://sourceforge.net/projects/data-range-comp/

COPYRIGHT

Copyright 2011 Michael Shipper. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 30:

Unknown directive: =Exports