diff --git a/lib/axiom/relation/operation/sorted/direction_set.rb b/lib/axiom/relation/operation/sorted/direction_set.rb
index <HASH>..<HASH> 100644
--- a/lib/axiom/relation/operation/sorted/direction_set.rb
+++ b/lib/axiom/relation/operation/sorted/direction_set.rb
@@ -90,7 +90,7 @@ module Axiom
           # @api private
           def cmp_tuples(left, right)
             reduce(0) do |cmp, direction|
-              break cmp if cmp.nonzero?
+              return cmp if cmp.nonzero?
               direction.call(left, right)
             end
           end
Refactor comparison to return early when it is nonzero