Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Does AddSorted work in a numeric grid?

I was using AddSorted in a numeric grid and got the error "The function called AddSorted  contains an invalid number of arguments or an argument with an incorrect type".

I tried AddSorted(Q1,0) and AddSorted(Q1,0) and AddSorted(Q1) in my constructed list.

Am I missing something?

The grid is column based with one column and 10 rows with a numeric response for each.

It works fine in constant sum and ranking questions and select type grids. No issues there.
asked Oct 28, 2019 by Paul Moon Platinum (94,725 points)

1 Answer

0 votes
Hi Paul,

Try making  Grid direction as Column and use 'AddSorted(Q1_c1,0)'

Regards,
Saurabh
answered Oct 28, 2019 by Saurabh Aggarwal Gold (34,795 points)
Thanks. I knew it was something silly I was doing!
...