Here is the script challenge of the day usiners !
Rules:
-Queue two incoming values in an array, where A is the master, and B the slave. Then sort array by increasing values, reject zeros at the beginning, resize the array, and send out array by increasing order with two outputs: A and B which have the same master/slave relationship they had at the input.
-Clear/reset button.
-A clock input to queue values.
optionnal :
-possibility to have more slaves values. Where A is the master, and B,C,D...(n) are the slaves.
-What you want.
Here is a patch showing the basic idea.




