Keys are Python bytes objects and sorted like Python bytes objects (which use lexicographic sorting).SpotlightKid wrote:One remark about the docs: I don't see any mention of what the implicit sort order of keys is. If it is alphabetical, which I assume, which encoding is used and is it by code point or lexicographical?
It will be interesting to revisit this question when we have a lot of software leveraging the current capabilities of the module. I'm personally waiting for a killer app (say, 1000 github stars).Can the sort method be changed?
Patches welcome.Apart from that the docs have the (usual ) inconsistent use of single and double backticks, which is all over the docs. I admit, it's easy to get this wrong, especially when one often writes Markdown at other times.