Professional > Interview scripting > Interview scripting: Getting started > Changing the order of responses in a list
 
Changing the order of responses in a list
You may want to 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 in either ascending or descending order can help respondents quickly find a particular response in a long response 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 We want to randomize the list of responses, so that each time the question is asked, the responses will be displayed in a different order. This helps avoid bias in the responses. Enter the ran keyword to specify that the list of responses should be randomized:
TeaDrink "Which of the following teas do you drink?" categorical [1..]
{
  use TeaList
}
ran;
3 Navigate to the FavoriteTea question and add the keywords sublist asc to sort just the list of teas in ascending alphabetical order whenever this question is displayed. The OtherTea response will 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
};
Note that 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, then you can place 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