Fixed CursorMock.sort method