#NEWLINE# def sort_modifiers( self , modifiers ) : #NEWLINE# #INDENT# '\n        Ensures consistency in the order of modifier letters according to:\n\n          c > m > s\n        ' #NEWLINE# if ( len ( modifiers ) == 6 ) : #NEWLINE# #INDENT# modifiers = 'c-m-s-' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( self ) > 2 ) : #NEWLINE# #INDENT# if ( modifiers . startswith ( 's-' ) and modifiers . endswith ( 'c-' ) ) : #NEWLINE# #INDENT# modifiers = 'c-s-' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( modifiers . startswith ( 's-' ) and modifiers . endswith ( 'm-' ) ) : #NEWLINE# #INDENT# modifiers = 'm-s-' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( modifiers . startswith ( 'm-' ) and modifiers . endswith ( 'c-' ) ) : #NEWLINE# #INDENT# modifiers = 'c-m-' #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return modifiers