CategoricalMap::ArrangeAZ

Description

Sort this CategoricalMap in ascending order.

Syntax

void ArrangeAZ( )

Parameters

Return

Examples

EX1

void CategoricalMap_ArrangeAZ_ex1()
{
    // a Worksheet with at least 1 column must exist and contain data prior to execution
    Worksheet wks=Project.ActiveLayer();
    if (wks)
    { 
        string strWksColname = wks.Columns(0).GetName();
        strWksColname = wks.GetPage().GetName() + "_" + strWksColname;    
        
        StringArray vMyCatMap;
        CategoricalData cdMyCatData(strWksColname);
        vMyCatMap = (StringArray) cdMyCatData.Map; // CategoricalMap is sorted in ascending order by default
        cdMyCatData.Map.ArrangeZA();               // Sort CategoricalMap in descending order
        vMyCatMap = (StringArray) cdMyCatData.Map;
        cdMyCatData.Map.ArrangeAZ();               // Sort CategoricalMap in ascending order
        vMyCatMap = (StringArray) cdMyCatData.Map;
    }

}

Remark

See Also

CategoricalMap::ArrangeZA

header to Include

origin.h