<div><br clear="all">As MR.Kew said this is a vital problem and it is quite annoying, for example when you typeset Arabic or Persian and you want to put something in the right hand side you will use something like</div>
<div>\begin{flushright}</div>
<div>text</div>
<div>\end{flushright}</div>
<div>but XeTeX actually puts it in the left hand side and it just makes the oposite order in all other things (meaning make left right and right left) so if you want to put a text on the left hand side you gotta use \begin{flushright}</div>

<div>text</div>
<div>\end{flushright}</div>
<div>&nbsp;</div>
<div>which is quite funny, but I found this does not happen in English environment and there is a solution which is not good but you coud have something like</div>
<div>(outside the persian and arabic environment)</div>
<div>&nbsp;</div>
<div>\begin{flushright}</div>
<div>\textfarsi{text}</div>
<div>\end{flushright}</div>
<div>&nbsp;</div>
<div><br>-- <br>PSTricks<br><a href="http://pstricks.wordpress.com/">http://pstricks.wordpress.com/</a> </div>