View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17916 | Bug reports | Statistics | public | 2022-02-28 17:30 | 2022-05-16 11:19 |
Reporter | NilsClark | Assigned To | c_schmitz | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 5.2.x | ||||
Summary | 17916: Sorting of answer options in statistics screen | ||||
Description | We use a Net Promoter Score plugin for 10-step Likert scales. Looking at the results in the statistics, I notice, that the answer options are sorted this way: 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. | ||||
Steps To Reproduce | Steps to reproduceCreate a single select question with multiple answer options, e.g. List(dropdown) and add e.g. 5 answer options. Expected resultI would expect to see the answers sorted in the drop down as: Test 1 This works as expected. I would expect to see the answers sorted in the statistics as: 0 – Test 1 sorted by the numeric value (answer option code). Alternative: I would at least expect them in the original order, because I can sort them in question edit mode: sorted by position. Actual result0 – Test 1 The results are sorted with the default sort php function, which sorts by each digit. Especially for Likert scales, this is really unexpected and makes the results much harder to read. Using natsort(); this should result in the correct human readable order. Using natsort(); should work as well for alphanumerical answer codes. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 5.2.14+220214 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Brave (Chromium-based) | ||||
Database type & version | MariaDB 10.1.48 | ||||
Server OS (if known) | Ubuntu 18.04 | ||||
Webserver software & version (if known) | Apache | ||||
PHP Version | 7.4.28 | ||||
PR: https://github.com/LimeSurvey/LimeSurvey/pull/2410 Added the correct sorting where it was missing, |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=33482 |
|
Fixed in Release 5.3.14+220516 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2022-02-28 17:30 | NilsClark | New Issue | |
2022-02-28 17:30 | NilsClark | File Added: Screenshot 2022-02-28 at 17.21.42.png | |
2022-02-28 17:30 | NilsClark | File Added: Screenshot 2022-02-28 at 17.22.03.png | |
2022-02-28 17:30 | NilsClark | File Added: Screenshot 2022-02-28 at 17.22.56.png | |
2022-04-28 16:31 | gabrieljenik | Assigned To | => gabrieljenik |
2022-04-28 16:31 | gabrieljenik | Status | new => assigned |
2022-05-09 16:57 | gabrieljenik | Status | assigned => ready for testing |
2022-05-09 16:57 | gabrieljenik | Note Added: 69525 | |
2022-05-09 16:57 | gabrieljenik | Bug heat | 0 => 2 |
2022-05-16 10:03 | c_schmitz | Changeset attached | => LimeSurvey master 50f90622 |
2022-05-16 10:03 | c_schmitz | Note Added: 69648 | |
2022-05-16 10:03 | c_schmitz | Bug heat | 2 => 4 |
2022-05-16 10:03 | c_schmitz | Assigned To | gabrieljenik => c_schmitz |
2022-05-16 10:03 | c_schmitz | Resolution | open => fixed |
2022-05-16 10:04 | c_schmitz | Status | ready for testing => closed |
2022-05-16 10:04 | c_schmitz | Status | closed => resolved |
2022-05-16 11:19 | LimeBot | Note Added: 69659 | |
2022-05-16 11:19 | LimeBot | Status | resolved => closed |
2022-05-16 11:19 | LimeBot | Bug heat | 4 => 6 |