Sort a DOM node's children