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.

1 2 3 4 5 6 A C B A.method() B.method() C.method()