Hello,
You can do a script similar to this one to order value.
This script is not "perfect" but seems to be okay
dt = CurrentDataTable();
col = Column("VCC");
list = {};
ulist = {};
listTT = {};
listSS = {};
listFF = {};
/* Add data from VCC into a list */
For (i=1, i<=Nrows(dt),i++,
InsertInto (list,col)
);
/* Create a unique list */
For (i=1,i<=Nitems(list),i++,
If (Nrows(Loc(ulist,list)) == 0,
InsertInto (ulist,list)
);
);
/* Create 3 lists contains pattern */
For (i=1,i<=Nitems(ulist),i++,
if (contains(ulist,"TT") > 0,
InsertInto (listTT,ulist)
);
if (contains(ulist,"SS") > 0,
InsertInto (listSS,ulist)
);
if (contains(ulist,"FF") > 0,
InsertInto (listFF,ulist)
);
);
/* Create the final list to have color order*/
list = {};
InsertInto(list,listFF);
InsertInto(list,listTT);
InsertInto(list,listSS);
/* Put Value ordering property */
col << Set Property("Value Ordering",list);
/* Then make your analysis */
Guillaume