> > > P.S. I have tried using in-place > sort!(p[fp:end]) > rather than > p[fp:end] = sort(p[fp:end]) > but it does not do what I expected. >
The thing here is quite subtle, but the problem is that currently p[fp:end] returns a copy, rather than a reference. This will change in 0.4, but there are still lots of discussion needed on some of the subtleties, so that we don't do too many iterations before getting it right. I think you can get it now, by writing: sort!(sub(p,fp:length(p))) Regards Ivar
