all tests now passing, including sort tests