corrected cursor constraint application order. sort->skip->limit