Sort the badges on the user profile page

Badges are now ordered on the user profile page, and the user_badges_controller stopped doing two different things in one method.

Proof that the ordering works:

![image](https://cloud.githubusercontent.com/assets/627891/4033840/fe3e5162-2c7f-11e4-847c-79798f4fb1e2.png)