# File lib/mime/types.rb, line 93
    def priority_compare(other)
      pc = simplified <=> other.simplified

      if pc.zero? and registered? != other.registered?
        pc = registered? ? -1 : 1
      end

      if pc.zero? and platform? != other.platform?
        pc = platform? ? 1 : -1
      end

      if pc.zero? and complete? != other.complete?
        pc = complete? ? -1 : 1
      end

      if pc.zero? and obsolete? != other.obsolete?
        pc = obsolete? ? 1 : -1
      end

      if pc.zero? and obsolete? and (use_instead != other.use_instead)
        pc = if use_instead.nil?
               -1
             elsif other.use_instead.nil?
               1
             else
               use_instead <=> other.use_instead
             end
      end

      pc
    end