I tested it on some file and it works fine for me. I doesn't switch order or do anything weird with text. Meaby I don't uderstand the task?