Writing a 'natural sort' for clothing sizes ("S" > "XS", "medium" > "small") is more tractable than I'd initially feared.