I don't see what case this is handling that is not already handled in the indexed access path initialization. Is there a better way to ensure that sortDirection == SortDirectionType.INVALID already whenever this code would reset canSkip back to false?