Alvaro: > So, not bad. In those [infrequent, I'd say] cases needing an array one > would do: > > auto keys = array(aa.keys);
Unfortunately in D you often need arrays, so those cases are frequent.
> even: (unsure if this would work, but somethig similar maybe)
>
> foreach(k; array(aa.keys).sort)
> {
> ... use the ordered keys
> }
sort property is deprecated (or going to be).
Bye,
bearophile
