@Test
public void testSort() {

    DoubleList list = new DoubleList();
    list.sort();
    assertThat(list.toArray()).isEmpty();
    list.add(10d);
    list.add(5d);
    list.sort();
    assertThat(list.toArray()).containsExactly(5d, 10d);
}