cursor with skip limit sort