Fix application unit tests on linux

Ensure exact sorting when asserting against an array.