$countsort = $count == 0 ? '' : 1 / $count;
+ $countsort += .000001;
+ $countsort = number_format($countsort, 6);
The sorting keys get a float plus the term name. 1.0termx was sorting wrong compared to 1.111termy. Above code fixes.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | countsort.patch | 1.12 KB | robertdouglass |
Comments
Comment #1
robertdouglass commentedAs patch form. Committing to 6.1. Please backport.
Comment #2
robertdouglass commentedComment #3
claudiu.cristeaCommitted in #317580 and #317582.