Order badges by id