IMetabaseUpdateFolderNode.Sort

Syntax

Sort(Mode: UpdateSortMode);

Parameters

Mode. Type of objects sorting.

Description

The Sort method sorts update objects.

Example

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:

IMetabaseUpdateFolderNode