TinySort will sort any nodetype by it’s text- or attribute value, or by that of one of it’s children.