> If your are talking about D2, then use std.algorithm sort > Like taken from docs below: > > bool myComp(int x,int y) {return x> y; } > sort!(myComp)(array); > > > See also: > http://www.digitalmars.com/d/2.0/phobos/std_algorithm.html#sort > > -- > Dmitry Olshansky Ah, yes, thanks; that looks like it could be perfect.