$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.

CommentFileSizeAuthor
#1 countsort.patch1.12 KBrobertdouglass

Comments

robertdouglass’s picture

StatusFileSize
new1.12 KB

As patch form. Committing to 6.1. Please backport.

robertdouglass’s picture

Version: 6.x-1.x-dev » 5.x-2.x-dev
Status: Active » Patch (to be ported)
claudiu.cristea’s picture

Status: Patch (to be ported) » Fixed

Committed in #317580 and #317582.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.