Fix tests that relied on stable sort
The parallel sorts in the device adapter are documented to not be stable. Up until recently, the sorts for all the supported devices happened to be stable (or at least provided a stable sort where needed). However, the recent Kokkos adapter provides a sort that is no stable. This broke some tests that relied on stable sorts when they should not have.
Fix the tests that relied on stable sort to check the results.