Adding more tests for sorting. TDD
Used autopep8 to clean up the source code. Passed all tests and smoke tests.