Sorts text sequences in LTR and RTL by system language direction.