#NEWLINE# def sort_candidate( arg ) : #NEWLINE# #INDENT# names = arg . names #NEWLINE# shorts = set ( ( x for x in arg if ( len ( x . strip ( '-' ) ) == 1 ) ) ) #NEWLINE# longs = set ( ( x for x in names if ( x not in shorts ) ) ) #NEWLINE# return sorted ( ( shorts if shorts else longs ) ) [ 0 ]