jtauber / pyuca

a Python implementation of the Unicode Collation Algorithm
MIT License
216 stars 23 forks source link

helper functions for sorting different datatypes #25

Open jtauber opened 3 years ago

jtauber commented 3 years ago

For example dictionaries sorted by key is quite common:

d = dict(sorted(d(), key=lambda x: c.sort_key(x[0])))
diyclassics commented 2 years ago

Had just such an application for this today—if I figure out the best way to handle this, I'll submit a PR.