ArrangeZA
Sort this CategoricalMap in descending order.
void ArrangeZA( )
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; } }
CategoricalMap::ArrangeAZ
origin.h