Desktop User Guides > Professional > Interview scripting > Interview scripting: Getting started > Changing the order of responses in a list
 
Changing the order of responses in a list
You can change the order in which the responses to your questions are delivered. Rotating, randomizing or reversing the order can help counteract respondents’ tendency to choose the first recognized and available option. Alphabetic sorting can help respondents find a response in a long list.
Procedure
1 Navigate to the TeaDrink multiple-response categorical question:
TeaDrink "Which of the following teas do you drink?" categorical [1..]
{
  use TeaList
};
2 You can randomize the list of responses, so that each time the question is asked, the responses are in a different order. This helps avoid bias in the responses. Enter the ran keyword:
TeaDrink "Which of the following teas do you drink?" categorical [1..]
{
  use TeaList
}
ran;
3 Go to the FavoriteTea question, and then add the keywords sublist asc to sort just the list of teas in ascending alphabetical order. The OtherTea response is always be the last response displayed.
FavoriteTea "And which is your favorite type of tea?" categorical [1..1]
{
  use TeaList sublist asc,
  OtherTea "Other Tea" other
};
Although both questions use the same shared list, we have not added the ordering keywords to the shared list’s definition. Instead, we have added the ordering keywords to the questions that use the list. This is because we want to be able to choose the ordering sequence for each question. If you always want to apply the same ordering sequence whenever a shared list is used, put the ordering keyword inside the list definition.
Requirements
UNICOM Intelligence Professional with Interview Scripting.
Next
Displaying multiple questions on one page
See also
Interview scripting: Getting started