Stabilized AB sort

Summary: Instead of just sorting by weight, now sorts on wight and then name

Test Plan: This is actually really difficult to test ...

Reviewers: jace

Differential Revision: http://phabricator.khanacademy.org/D2108