Question about WordPress functions

WordPress has that built in function the_Terms, which outputs the terms of the custom taxonomy but it shows like parent > child.
And I want to display it as child > parent.

Any advice?