hi, oBrw:lAutoSort := .t. // default .f. to invoke autosort feature. We can also use AUTOSORT clause in the XBROWSE command, which sets the flag. WOW, that is nice :D When autosort flag is ON, XBrowse automatically sorts the data on click of header, using the value in oCol:cSortOrder. First ...