The IMAPIFolder::SaveContentsSort method sets the default sort order for a folder's contents table.
See IMAPIFolder : IMAPIContainer.
HRESULT SaveContentsSort(
LPSSortOrderSet lpSortCriteria,
ULONG ulFlags
);
The IMAPIFolder::SaveContentsSort method establishes a default sort order for a folder's contents table. That is, when a client calls the folder's IMAPIContainer::GetContentsTable method after calling SaveContentsSort, the rows in the returned contents table will appear in the order established by SaveContentsSort.
Not all message store providers support SaveContentsSort; it is acceptable for message store providers to return MAPI_E_NO_SUPPORT from the SaveContentsSort method.
IMAPIContainer::GetContentsTable, SSortOrderSet