IMetabaseUpdateFolderNode.Sort

Syntax

Sort(Mode: UpdateSortMode);

Parameters

Mode. Type of objects sorting.

Description

The Sort method sorts update objects.

Example

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:

IMetabaseUpdateFolderNode