Adding additional sorting of the interactions to give deterministic output.