Sort(Mode: UpdateSortMode);
Mode. Type of objects sorting.
The Sort method sorts update objects.
Executing the example requires that the root of the C disc contains the Object.pefx update file.
Sub UserProc;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
UFN: IMetabaseUpdateFolderNode;
Begin
MB := MetabaseClass.Active;
Update := MB.CreateUpdate;
Update.LoadFromFileNF("C:\Object.pefx");
UFN := Update.RootFolder;
UFN.Sort(UpdateSortMode.ByType);
Update.SaveToFileNF("C:\Object.pefx");
End Sub UserProc;
After executing the example the objects included in the specified update file are sorted. Objects are sorted by type.
See also: