PEP8
Add test for exception in sort().