#NEWLINE# def test_sort_6( ) : #NEWLINE# #INDENT# table = ( ( 'foo' , 'bar' ) , ( 2.3 , 2 ) , ( 1.2 , 9 ) , ( 2.3 , 6 ) , ( 3.2 , 1 ) , ( 1.2 , 10 ) ) #NEWLINE# expectation = ( ( 'foo' , 'bar' ) , ( 3.2 , 1 ) , ( 2.3 , 6 ) , ( 2.3 , 2 ) , ( 1.2 , 10 ) , ( 1.2 , 9 ) ) #NEWLINE# result = sort ( table , key = ( 'foo' , 'bar' ) , reverse = True ) #NEWLINE# ieq ( expectation , result )