list.sort() test cases
Added key parameter to sort()