Christoph Zwerschke <cito at online.de> wrote: ... > d.ksort() = d.sortkeys() > d.asort() = d.sortvalues() > > d.sort() could default to one of them (not sure which one). Define JUST d.sort, you can trivially implement the other as d.sort(key=d.get). Alex