2.2.3.2.2 CategoricalMap::ArrangeZA

Description

Sort this CategoricalMap in descending order.

Syntax

void ArrangeZA( )

Parameters

Return

Examples

EX1

void CategoricalMap_ArrangeZA_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

Sort this CategoricalMap in descending order.

See Also

CategoricalMap::ArrangeAZ

Header to Include

origin.h