better sort for xml elements