# File lib/dnsruby/resource/RRSet.rb, line 95
  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