Order to_factor levels by another vector
Reorders to_factor levels using summary statistics computed from a companion numeric vector.