Tidy lays your shapes out along their lines so the diagram reads in one direction, with as few lines crossing as it can. With nothing selected, Style shows Tidy for the whole page: pick Top to bottom or Left to right. Select two shapes or more to tidy just those.
Shift T tidies top to bottom and Shift R left to right. One Undo puts everything back where it was.
Swimlanes, containers and the shapes inside them stay where they are. Shapes that are not joined to anything are set out beside the rest.
Lines that you had fixed to a side pick the sides that face each other again, since the shapes may have turned around.