Fix flaky tests (bug 1008457)

- Sort lists of ids for consistent test behaviour
Merge pull request #248 from JaredKerim-Mozilla/1008457

Fix flaky tests (bug 1008457)