<s> from pysqlite2 import dbapi2 as sqlite3 <EOL> def collate_reverse ( string1 , string2 ) : <EOL> return - cmp ( string1 , string2 ) <EOL> con = sqlite3 . connect ( "<STR_LIT>" ) <EOL> con . create_collation ( "<STR_LIT>" , collate_reverse ) <EOL> cur = con . cursor ( ) <EOL> cur . execute ( "<STR_LIT>" ) <EOL> cur . executemany ( "<STR_LIT>" , [ ( "<STR_LIT:a>" , ) , ( "<STR_LIT:b>" , ) ] ) <EOL> cur . execute ( "<STR_LIT>" ) <EOL> for row in cur : <EOL> print row <EOL> con . close ( ) </s>
