Passing the ordering responsibility to R instead