-special_marks = {'ż': '|', 'Ż': '|',}
-def replace_char(m):
- char = m.group()
- if char_map.has_key(char):
- special = special_marks.get(char, '{')
- return char_map[char] + special
- else:
- return char
-
-def sortify(value):
- """
- Turns Unicode into ASCII-sortable str
-
- Examples :
-
- >>> slughifi('aa') < slughifi('a a') < slughifi('ą') < slughifi('b')
- True
-
- """
-