sort strings by interpreting them as integrals

bearophile bearophileHUGS at lycos.com
Sun Jul 29 19:48:02 PDT 2012


Jonathan M Davis:

> Otherwise, wouldn't _100 come before _20?

But he has said:

> I need to treat these as if they were integrals, although the
> underscore complicates things here since it should be ignored. 
> So the result I want is:
> ["_10", "_20", "_100"]

No mention of 100 coming before 20.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list