Simon Willison’s Weblog

strnatcmp.py. Perform ’natural order’ comparisons of strings in python.