@Test
public void testShort() {

    int[] order = new int[6];
    double[] values = new double[6];
    // all duplicates
    for (int i = 0; i < 6; i++) {
        values[i] = 1;
    }
    Sort.sort(order, values);
    checkOrder(order, values);
    values[0] = 0.8;
    values[1] = 0.3;
    Sort.sort(order, values);
    checkOrder(order, values);
    values[5] = 1.5;
    values[4] = 1.2;
    Sort.sort(order, values);
    checkOrder(order, values);
}