r sorted. If needed a GC-copy of r is allocated, sorted and returned.
http://forum.dlang.org/thread/tnrvudehinmkvbifovwo@forum.dlang.org#post-tnrvudehinmkvbifovwo:40forum.dlang.org TODO: Add to Phobos
See Implementation