When I select the next tag badge to track I see the following window:
So each tag badge has four numbers:
- s: earned score
- S: required score
- a: posted answers
- A: required answers
I'm curious how this view is sorted. My best guess is that sorting key is calculated according to the formula: floor(50*(min(s/S, 1)+min(a/A, 1)))
and when this yields equal result, the badges are sorted alphabetically. This algorithm is almost consistent with what I see, but one badge is misplaced (it's not on the screenshot). Does anybody know what's the real sorting algorithm?
min(0, floor(100*s/S), floor(100*a/A))
make more sense, or at least something emphasizing the lower percentage over the higher a bit? Maybe something more like100*(x/(1-y)+y/(1-x))/(1/(1-y)+1/(1-x))
(Substitute 100x resp. 100y when one of them is not between 0 and 1, exclusive. 0 resp. 100 if both are.) – Deduplicator Sep 4 '15 at 14:430
being a minimum. I think it ismax(0, min(100, floor(100*s/S))
andmax(0, min(100, floor(100*a/A))
for the CSS progress bars, and the sorting is simply the sum of those two integers (with badge name as the tiebreaker). – Martijn Pieters♦ Sep 4 '15 at 14:50