# In next badge selection, why does Epic with 2/50 sort ahead of Illuminator with 24/500?

Mostly, the badges are sorted in order of percentage complete, as far as I can see. But per the title, Epic (with 2/50, or 4%) sorts ahead of Illuminator (with 24/500, or 4.8%). What's up with that?

• It was quite confusing when I saw that on my next-badge but I did figure out the math behind with the help Oded's formula. Commented Aug 19, 2015 at 0:18

As per Oded's answer: (emphasis mine)

- These are sorted by the combined completion %ages of both bars (I don't think there is a reasonable secondary sort to this), given that both parts are required in order for the badge to be earned. In that respect the three highlighted badges are all 5% completed (2/20 == 10% - the other bar is 0% - so together 5% complete, 5/100 == 5% + 1/20 == 5% - so altogether 5% complete).

Please see Patrick Hofman's "Select your next badge dialog doesn't sort the tags as expected" post for more details and his next-badge screenshot. Also note that Oded's answer was given on the initial release of new profile where they were collecting feedback and bugs. The current next-badge UI looks little different.

Here a screenshot of my 'Epic' & 'Illuminator' next-badge section:

Notice, my 'Illuminator' badge (1/500 ) is placed after the 'Epic' badge (0/50).

To obtain the bar percentage you will have to right-click on the next-badge label / title. For example,

Here is what my 'Epic' badge shows:

``````<div class="bar">
<div class="label">Epic - 0/50</div>
<div class="percent" style="width: 0%;"></div>
</div>
``````

Here is what my 'Illuminator' badge shows:

``````<div class="bar">
<div class="label">Illuminator - 1/500</div>