Is the sorting just for tests, or for another reason?