Improved sorting of records by origin.

This commit is contained in:
Andrey Savchenko committed 2018-12-14 21:08:16 +02:00
1 parent 9301c8256d
commit bf4ca812aa
1 file changed
+1 -1
+1 -1
View File
@@ -49,7 +49,7 @@ class Recursive_Record_Iterator extends \ArrayIterator implements \RecursiveIter
$origin_a = $record_a->get_origin(); $origin_a = $record_a->get_origin();
$origin_b = $record_b->get_origin(); $origin_b = $record_b->get_origin();
if ( $origin_a === $origin_b ) { if ( abs( $origin_a - $origin_b ) < 0.0001 ) { // Float math! Makes nesting results more sane.
return 0; return 0;
} }