TextContainer: switch to a sorted layout container

should make ContentAtPoint much faster
also seems to magically fix an assert o_O