How are the badges sorted within a category?

@riking This is not the case though for user cards, right? Any advice on ordering those?