Hi,
I just want to sort my array of values, which I get from a model. After checking the forum I found that I need to sort occures list and did the following:
var objOccs = array.ObjOccList();
objOccs = ArisData.sort(objOccs, Constants.SORT_GEOMETRIC, Constants.SORT_Y, currentLanguage);
Tried to sort the following also:
objOccs = ArisData.sort(objOccs, Constants.SORT_Y, Constants.SORT_NONE, currentLanguage);
objOccs = ArisData.sort(objOccs, Constants.SORT_Y, Constants.SORT_GEOMETRIC, currentLanguage);
Could someone help me?
Thanks
Hi!
What kind of objects do you want to sort?
Object occurrences in a model/models? How should they be sorted? Occs can only be sorted using the following constants:
SORT_OBJDEF_NAME
SORT_GROUPNAME
SORT_GROUPHIERARCHY
SORT_TYPE
SORT_MODEL
SORT_STATE
SORT_SYMBOLNAME
SORT_GEOMETRIC
SORT_MODELTYPE
SORT_X
SORT_Y
+ by any attribute of its object definition
BR,Torsten
Hi,
the objects I want to sort are all functions, have read out all object occurence from the model, and then I tried to sort them, like given above, with the constant SORT_OBJDEF_NAME it works fine, but with the SORT_Y there is no order. In the model all functions are shown in one row, first function is the one at the top of the list.
Thanks
Sica