Plugin TrackerStat: natural case sorting on the answers (text strings)
- Status
- Open
- Subject
- Plugin TrackerStat: natural case sorting on the answers (text strings)
- Version
- 12.x
15.x
18.x
19.x
20.x - Category
- Usability
- Less than 30-minutes fix
- Support request
- Feature
- Trackers
Wiki Plugin (extends basic syntax) - Resolution status
- New
- Submitted by
- Xavier de Pedro
- Lastmod by
- Xavier de Pedro
- Rating
- Related-to
- Description
Plugin TrackerStat has no easy replacement with Plugin List, as far as a I know.
We need to have the answers to a question (tracker field) sorted with natural case sorting. For instance, if you ask in the question a radio button showing options from 1 to 24, you will get the answers sorted as something like (copied from a production site):
Copy to clipboard1 10 %3.12 <-> 1 11 %3.12 <-> 2 12 %6.25 <-> 1 13 %3.12 <-> 1 15 %3.12 <-> 5 16 %15.62 <-> 4 18 %12.50 <-> 1 2 %3.12 <-> 3 20 %9.38 <-> 1 21 %3.12 <-> 1 22 %3.12 <-> 1 24 %3.12 <-> 1 24 (Always) %3.12 <-> 3 3 %9.38 <-> 3 5 %9.38 <-> 2 6 %6.25 <-> 1 8 %3.12 <->
See it reproduced here:
http://xavi-9794-5637.show.tikiwiki.org/tiki-index.php#contentvotingsystem-2
u: admin
p: 12345field: 12
How many days?Copy to clipboard1 1 %33.33 <-> 1 10 %33.33 <-> 1 2 %33.33 <->Answer related to "10" should be after the one related to answer number "2"
PHP function natcasesort needs tobe used to sort answers.
http://php.net/manual/en/function.natcasesort.php- Importance
- 4
- Easy to solve?
- 8
- Priority
- 32
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 5637
- Created
- Monday 20 April, 2015 21:29:46 UTC
by Xavier de Pedro - LastModif
- Thursday 18 April, 2019 17:09:10 UTC