passing more tests with existing code
passing sort test