[Bps-public-commit] r15816 - in Data-Hierarchy/trunk: .

clkao at bestpractical.com clkao at bestpractical.com
Mon Sep 8 07:07:18 EDT 2008

Author: clkao
Date: Mon Sep  8 07:07:17 2008
New Revision: 15816

   Data-Hierarchy/trunk/   (props changed)

 r35455 at mtl (orig r390):  glasser | 2006-11-05 06:49:00 +0800
 Ensure that the output of Data::Hierarchy->find is sorted.

Modified: Data-Hierarchy/trunk/lib/Data/Hierarchy.pm
--- Data-Hierarchy/trunk/lib/Data/Hierarchy.pm	(original)
+++ Data-Hierarchy/trunk/lib/Data/Hierarchy.pm	Mon Sep  8 07:07:17 2008
@@ -226,7 +226,7 @@
 =item C<find $path, $property_regexps>
 Given a path and a hash reference of name/regular expression pairs,
-returns a list of all paths which are descendents of C<$path>
+returns a sorted list of all paths which are descendents of C<$path>
 (including itself) and define B<at that path itself> (not inherited)
 all of the properties in the hash with values matching the given
 regular expressions.  (You may want to use C<qr/.*/> to merely see if
@@ -268,7 +268,7 @@
     $recursive->($self->_root_without_sep($path), $node);
-    return @$items;
+    return sort @$items;
 =item C<defines $path, $property>

More information about the Bps-public-commit mailing list