fixes #93: sort sentence root nodes using token ordering