Many score based Weibull regressions

Sort a vector coresponding to another.

1 2 | ```
sort_cor_vectors(x,y)
sort_index(x, descending = FALSE)
``` |

`x` |
A numeric vector. |

`y` |
A numeric vector to help sorting the x. |

`descending` |
A logical value for choosing asceding or descending order. |

This function implements the R's "sort" function using the C++'s function sort.

Returns the first argument but sorted acording to the second vector.

Manos Papadakis

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>

1 2 3 4 | ```
y <- rnorm(100)
x <- rnorm(100)
b <- sort_cor_vectors(x,y)
b <- sort_index(x)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.