This orientation issue is indeed a tricky issue. I see that often happening due to the fact that the individual is registered at the MRI console in a certain way, let’s say head first - supine and the subjects is eventually in a different position (sphinx position for instance).
It was discussed here with some solutions proposed for anatomical images:
When diffusion MRI is involved, it gets even more tricky as @neurolabusc is saying: you have to taken into account also the gradient directions. Among the tools listed by @neurolabusc to help you check those orientations, I would add the dwigradcheck tool.
The procedure is given in this thread from the mrtrix forum: