Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # https://realpython.com/python-sort-unicode-strings/?fbclid=IwAR2YkM_yy4De0Dw0cL-Fbi-_fxeI7ORhcp_vj2btNmGiDXh-UWDzG7aZjls
- polish_names = ["Zbigniew", "Ludmiła", "Żaneta", "Łukasz"]
- sorted(polish_names)
- import pyuca
- sorted(polish_names, key=locale.strxfrm)
- import locale
- locale.getlocale()
- sorted(polish_names, key=locale.strxfrm)
- locale.setlocale(locale.LC_COLLATE, "pl_PL.UTF-8")
- sorted(polish_names, key=locale.strxfrm)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement