LTR and RTR shows unusual behaviour for special characters

Description

If you look closely, while shifting the sentence to start from left or right using ltr & rtr, the special characters exchanges their position. Which seems unnatural.

ezgif.com-video-to-gif

Ideal Behaviour

Special characters must also shift in the same way as normal alphabets & digits do.