Fix Issue 6787 - Implement std.algorithm.lazySort

https://d.puremagic.com/issues/show_bug.cgi?id=6787