class ActiveAdmin::BatchAction

def <=>(other)

sort operator
def <=>(other)
  self.priority <=> other.priority
end