class ActiveAdmin::HasManyBuilder

def sorted_children(column)

def sorted_children(column)
  __getobj__.object.public_send(assoc).sort_by do |o|
    attribute = o.public_send column
    [attribute.nil? ? Float::INFINITY : attribute, o.id || Float::INFINITY]
  end
end