Sort(Mode: UpdateSortMode);
Mode. Type of objects sorting.
The Sort method sorts update objects.
Executing the example requires the update file C:\Object.pefx.
Sub Main;
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 Main;
After executing the example the objects, included in the specified update file, are sorted. Objects are sorted by type.
See also: