def sort_collator():
 global _sort_collator
 if (_sort_collator is None):
  _sort_collator = collator().clone()
  _sort_collator.strength = _icu.UCOL_SECONDARY
  _sort_collator.numeric = tweaks[u'numeric_collation']
 return _sort_collator

def sort_collator ( ) : global _sort_collator if ( _sort_collator is None ) : _sort_collator = collator ( ) . clone ( ) _sort_collator . strength = _icu . UCOL_SECONDARY _sort_collator . numeric = tweaks [ u'numeric_collation' ] return _sort_collator
ignores case differences and recognizes numbers in strings .