Fix bug where 2 badges in series have same rank (add optional order attribute to Badge)