Good catch: These strings are being sorted alphabetically, so "10" comes before "2". I think the best way to fix this is to pull out the first number of a pair and sort, probably on the python side, rather than trying to parse the string inside polars. Will file a new issue.
Originally posted by @mccalluc in https://github.com/opendp/dp-wizard/issues/152#issuecomment-2479651210