all tests passing after sort feature has been introduced