SETCURRENTKEY

void SETCURRENTKEY(Fieldname1, 
  Fieldname2, 
  Fieldname3, 
  ...);

Sets key for sorting of the current record. The key used here must be available in the corresponding Microsoft Dynamics table.