> >I do test (I don't ever catch 'SourceType'=2, so test yourself) in SortIt()
By the way, 'SourceType'=2 is for remote views
so
if( inlist(CURSORGETPROP('SourceType'), 1, 2) and !empty(cdx(1)) )
INDEXON &lc__SortExpr TAG (.gcCurrentTag) OF (CDX(1)) ADDITIVEelseINDEXON &lc__SortExpr TAG (.gcCurrentTag)
endif