How to change the order of participants

The participant shows in the diagram in the order that they appear in the code. You can change that order by declaring them first.

A C B A.method() B.method() C.method()