Sort before skip and limit in order to preserve initial sort integrity