[ sorted(xprint( [ in [ ] [ is sorted(xout[ ]false how to sort in reverted order in [ ] [ sort(reverse=trueprint( [ sort nested lists in [ ]employees [( 'john')( 'emily')( 'david')( 'mark')( 'andrew')employees sort(key=lambda xx[ ]employees out[ ][( 'andrew')( 'mark')( 'john')( 'emily')( 'david')in [ ]employees [( 'john')( 'emily')( 'david')( 'mark')( 'andrew')employees sort(key=lambda xx[ ]employees out[ ][( 'andrew')( 'david')( 'emily')( 'john')( 'mark')also with reversed order in [ ]employees [( 'john')( 'emily')( 'david')( 'mark')( 'andrew')employees sort(key=lambda xx[ ]reverse=trueemployees out[ ][( 'david')( 'emily')( 'john')( 'mark')( 'andrew')list extras