class Doorkeeper::OAuth::Scopes

def <=>(other)

def <=>(other)
  if other.respond_to?(:map)
    map(&:to_s).sort <=> other.map(&:to_s).sort
  else
    super
  end
end