class Lookbook::TreeNode

def <=>(other)

def <=>(other)
  if content?
    content <=> (other.content? ? other.content : other)
  else
    [priority, label] <=> [other.priority, other.label]
  end
end