Fixed some sorting tests.