RemoveSort removes a current order of records and sets a default order of records.
var dbf :integer; begin dbf := OpenBase( 'filename.dbf' ); if dbf <> 0 then begin SortBase(dbf, 'NAME'); // some code RemoveSort(dbf); CloseBase(dbf); end; end.