Iteration order can't be depended on, so provide a sort when testing list endpoints