class Dry::Schema::Path

def <=>(other)

Other tags:
    Api: - private
def <=>(other)
  return keys.length <=> other.keys.length if include?(other) || other.include?(self)
  first_uncommon_index = (self & other).keys.length
  keys[first_uncommon_index] <=> other.keys[first_uncommon_index]
end