self-nesting elements must be ordered last