Add a sort method. Pass tests.