in reply to Sorting out text

As we have absolutely no idea what you have done, let alone done wrong, I would suggest deleting line 234 and seeing what happens.

(In other words, we can't help if we don't know what you've tried.)

------
We are the carpenters and bricklayers of the Information Age.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.