Add tests for sorted() function
and check that sorted(list) produces same output as list.sort()
Merge pull request #444 from lurch/test-sorted

Add tests for sorted() function