Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Sorting of answer options in result screen

  • NilsClark
  • NilsClark's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 1 month ago #225608 by NilsClark
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.2
Own server or LimeSurvey hosting: own server
Survey theme/template: vanilla
==================

We use a Net Promoter Score plugin for 10-step Likert scales.
This type of scale requires to add answer options numbered from 0 to 10.

Looking at the results, I notice, that the results are sorted this way:
0, 1, 10, 2, 3, 4, …

It seems that sorting is done using the default PHP sort function, which leads to this somehow correct but not human readable sorting.

Using natsort() would result in the correct numerical sorting, as well as in a proper sorting with alphanumeric answer options.

 
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 month ago #225610 by Joffm
Replied by Joffm on topic Sorting of answer options in result screen
This is a general issue, not related to this question theme.
So, file a bug report.

[url] community.limesurvey.org/bug-tracker/ [/url]

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, NilsClark

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose