Trouble using 'sort'
Bahman Movaqar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 25 22:46:50 PDT 2016
On 07/26/2016 10:11 AM, Bahman Movaqar wrote:
> Alright...further experiments. The following works:
>
> sort!((pp1, pp2) => cmp(pp1.price, pp2.price) > 0)(theRange)
>
> So it may be something about what kind of range I'm passing to `sort`.
> Am I right?
>
I meant
sort!((pp1, pp2) => cmp(pp1.price, pp2.price) > 0)(theRange.array)
--
Bahman
More information about the Digitalmars-d-learn
mailing list