Made sorting tests, sorting tests pass