Oh, actually I think the fix I added was to wrap the thing in a `lists:sort`, but that's a dumb way to fix it.  Will rewrite.