Home / Guides / Self-Hosting & Infra
Python Sorting Gotchas: Strings vs Numbers, Mixed Types, Unicode, Stability, Multi-Key and NaN
Tested outputs on Python 3.10: sorted of numeric strings, key=int, case-insensitive key, accents sorting after z, stable sort, descending-by-one-key tuples, TypeError messages for str and None, sort() returning None, and NaN breaking order.
Read the full guide
The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.
Open in the Knowledge Base Agent API →