Created attachment 118557 [details]
It contains a sample phrase showing the problem with the comma
Please take a glance at this img: http://uploadkon.ir/fl/dd/76194
As you can see, Libreoffice does not behave properly with the Persian comma as a RTL character. Notice to the position of the word 'Ubuntu' in the 2nd and last lines. In the 3rd line, I replaced each comma with a Persian letter and English word went to correct position of the sentence, but letters are not comma!
The correct form: http://uploadkon.ir/fl/dd/76198 (look at 'Expected Format') --> I have manually put them in the correct position by writing those English words in reverse sequence!
Confirmed by looking at attachment 118557 [details]
Win 7 Pro 64-bit, Version: 18.104.22.168 (32-bit)
Build ID: 81898c9f5c0d43f3473ba111d7b351050be20261
Locale: fi-FI (fi_FI)
This is not a bug, this is the correct behavior of Unicode Bidirectional Algorithm. U+060C ARABIC COMMA is a punctuation with Common Separator BiDi class and not a strong RTL character.