Add tests to cover the sort method with and without values.