We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e5c4f1 commit 8eeb14dCopy full SHA for 8eeb14d
sorting/python.md
@@ -0,0 +1,18 @@
1
+# Sorting with the UCA in Python
2
+
3
+Sorting using the Unicode Collation Algorithm (UCA) is available with PyPi
4
+package [PyICU](https://pypi.python.org/pypi/PyICU).
5
6
+ from PyICU import Collator
7
8
+ collator = Collator.createInstance()
9
+ sorted = sorted(unsorted, cmp=collator.compare)
10
11
+## Linguistic tailoring
12
13
+The PyICU package also supports linguistic tailoring.
14
15
+ from PyICU import Collator, Locale
16
17
+ collator = Collator.createInstance(Locale('de'))
18
0 commit comments