Sorting for tests.