Right now all text are sorted in LTR order in TextPagePrivate::correctTextOrder() regardless from where they come. Since poppler has fixed it since 0.40, I've just ported reorderTex() from poppler to okular and it works. I am not sure what is unicodeTypeL() & unicodeTypeR() mean in poppler context so I just use isRightToLeft() instead.
This patch intended to fix the following bugs:
BUG: 207748
BUG: 353299
BUG: 353300
BUG: 353301
BUG: 184399