Added ordering to fix non-deterministic relatedapp test.