Welcome to the LimeSurvey Community Forum

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

Ranking scores in result screen

  • jan.philipp.thomeczek
  • jan.philipp.thomeczek's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 months 3 weeks ago #255169 by jan.philipp.thomeczek
Ranking scores in result screen was created by jan.philipp.thomeczek
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.4.4
Own server or LimeSurvey hosting: Limesurvey
Survey theme/template: Twentythree
==================
I would like to follow up on this discussion, which was been closed: forums.limesurvey.org/forum/can-i-do-thi...ment-output?start=12
The code works well, but I would like to make two ammendments that I can't figure out:
- instead of an ascending order, I'm looking for an descending order
- Is it possible to limit the output to, let's say, the 5 highest and 5 lowest scores (in case of a very long list of sub scores)?

Thanks in advance!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 months 3 weeks ago #255171 by Joffm
Replied by Joffm on topic Ranking scores in result screen
I'd try this:
1. Exchange the "<" and ">" operators in the sort function.

2. Use two loops
a. 1 to 5
b. (length-4) to length

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose