# Hack for sorting Badges?

**URL:** <https://meta.discourse.org/t/hack-for-sorting-badges/55656>\
**Category:** Support\
**Tags:** badges\
**Created:** [January 12, 2017, 5:09pm UTC](https://meta.discourse.org/t/hack-for-sorting-badges/55656 "2017-01-12T17:09:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Lutz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lutz/32/65103_2.png) [@Lutz](https://meta.discourse.org/u/Lutz)\
**Post date:** [January 16, 2017, 2:44am UTC](https://meta.discourse.org/t/hack-for-sorting-badges/55656/2 "2017-01-16T02:44:26Z")

</div>

In case someone needs it, there is way to sort the badges inside a single Badge-Group.

You need to add more rows to the table “badge\_types”. Lower Id’s will be sorted to the end of the list.  
Lets say you need to sort 5 Badges in one Badge-Group (they are from the table badge\_groupings). You could edit the table “badge\_types” as follow:

- row-id 1: name “Diamond”
- row-id 2: name “Platin”
- row-id 3: name “Gold”
- row-id 4: name “Silver”
- row-id 5: name “Bronze”

Then set your badges to the type you want. They will be displayed from Bronze → Diamond on the /badges and /users/[username]/badges page.

---

_[View the full topic](https://meta.discourse.org/t/hack-for-sorting-badges/55656)._
