# File lib/Dnsruby/resource/resource.rb, line 105 def <=>(other) # return 1 if ((!other) || !(other.name) || !(other.type)) # return -1 if (!@name) if (@name.canonical == other.name.canonical) return @type.code <=> other.type.code else return @name <=> other.name end end