AnsweredAssumed Answered

How to rank the value of variables

Question asked by on Jun 1, 2015
Latest reply on Jun 3, 2015 by Susanne.Heip

Hi, I am writing a model in which I generate x-axis and y-axis of the nodes. Now I want to store the distance ranks (x-axis, y-axis) of the nodes.

For example, node 1 (3,4), node 2 (2,8), node 3 (5,1). I want to have a function return x-axis rank of the nodes (2,1,3) and y-axis rank of nodes (3,1,2).

I am wondering whether this kind of function exists. If not, how can I write it in a convenient way?


Thank you very much!