class ActiveAdmin::Dashboards::Section

def <=>(other)

Sort by priority then by name
def <=>(other)
  result = priority <=> other.priority
  result = name.to_s <=> other.name.to_s if result == 0
  result
end

def icon

def icon
  @options[:icon]
end

def initialize(namespace, name, options = {}, &block)

def initialize(namespace, name, options = {}, &block)
  @namespace = namespace
  @name = name
  @options = options
  @block = block
end

def priority

def priority
  @options[:priority] || DEFAULT_PRIORITY
end