Desktop User Guides > Professional > Interview scripting > Writing interview scripts > Sorting categorical response lists > Sorting response lists containing subheadings > Sorting subsections but not responses in the subsections
 
Sorting subsections but not responses in the subsections
Place the ordering keyword at the end of the response section of the question as a whole. The interviewing program will then present the subsections in a different order for each interview, but all respondents will always see the responses in the subsections in the order they are defined in the interviewing script. For example, if the question is defined as:
Perception2 "What things would you mention about the Internet
    if you were describing it to a friend?" categorical [1..]
{
Favorable "Good things"
{
EasytoUse "Easy to use",
LotsOfInfo "Access to a lot of information",
PeopleLikeMe "Can chat to people with same interests",
BuyOnline "Good way to buy goods/services"
},
Unfavorable "Bad things"
{
NotReliable "Not a secure way to make purchases",
BadExperience "I had a bad experience in the past",
NotPrivate "Need to guard personal information",
Difficult "It's difficult to find appropriate web sites"
}
} rot;
the interviewing program will display favorable comments before unfavorable ones for one interview and then display unfavorable comments before favorable ones for the next interview. The comments themselves will always be shown in the order in which they are defined in the question:
Interview page showing sorted subsections with unsorted contents
This graphic is described in the surrounding text.
You can specify the same sorting in the routing section using:
Perception2 "What things would you mention about the Internet
    if you were describing it to a friend?" categorical [1..]
{
Favorable "Good things"
{
EasytoUse "Easy to use",
LotsOfInfo "Access to a lot of information",
PeopleLikeMe "Can chat to people with same interests",
BuyOnline "Good way to buy goods/services"
},
Unfavorable "Bad things"
{
NotReliable "Not a secure way to make purchases",
BadExperience "I had a bad experience in the past",
NotPrivate "Need to guard personal information",
Difficult "It's difficult to find appropriate web sites"
}
} rot;
See also
Sorting response lists containing subheadings