Basic implementation of CursorMock.sort method