DoubleColumn extends NumberColumn<DoubleColumn, Double> implements NumberFillers<DoubleColumn> { @Override public void sortAscending() { data.sort(DoubleComparators.NATURAL_COMPARATOR); } protected  DoubleColumn(String name, DoubleArrayList data); protected  DoubleColumn(String name); static boolean valueIsMissing(double value); @Override String getString(int row); @Override int size(); @Override void clear(); DoubleColumn setMissing(int index); static DoubleColumn create(String name, double... arr); static DoubleColumn create(String name); static DoubleColumn create(String name, float... arr); static DoubleColumn create(String name, int... arr); static DoubleColumn create(String name, long... arr); static DoubleColumn create(String name, Collection<? extends Number> numberList); static DoubleColumn create(String name, Number[] numbers); static DoubleColumn create(String name, int initialSize); static DoubleColumn create(String name, DoubleStream stream); @Override DoubleColumn createCol(String name, int initialSize); @Override DoubleColumn createCol(String name); @Override Double get(int index); @Override DoubleColumn where(Selection selection); @Override DoubleColumn subset(int[] rows); @Override DoubleColumn unique(); @Override DoubleColumn top(int n); @Override DoubleColumn bottom(final int n); @Override DoubleColumn lag(int n); @Override DoubleColumn removeMissing(); DoubleColumn append(final float f); DoubleColumn append(double d); DoubleColumn append(int i); @Override DoubleColumn append(Double val); DoubleColumn append(Number val); @Override DoubleColumn copy(); @Override Iterator<Double> iterator(); @Override Double[] asObjectArray(); @Override int compare(Double o1, Double o2); @Override DoubleColumn set(int i, Double val); DoubleColumn set(int i, double val); DoubleColumn set(DoublePredicate condition, NumericColumn<?> other); @Override Column<Double> set(int row, String stringValue, AbstractColumnParser<?> parser); @Override DoubleColumn append(final Column<Double> column); @Override DoubleColumn append(Column<Double> column, int row); @Override DoubleColumn set(int row, Column<Double> column, int sourceRow); DoubleColumn filter(DoublePredicate test); @Override byte[] asBytes(int rowNumber); @Override int countUnique(); @Override double getDouble(int row); boolean isMissingValue(double value); @Override boolean isMissing(int rowNumber); @Override void sortAscending(); @Override void sortDescending(); @Override DoubleColumn appendMissing(); @Override DoubleColumn appendObj(Object obj); @Override DoubleColumn appendCell(final String value); @Override DoubleColumn appendCell(final String value, AbstractColumnParser<?> parser); @Override String getUnformattedString(final int row); @Override DoubleColumn fillWith(final DoubleIterator iterator); @Override DoubleColumn fillWith(final DoubleRangeIterable iterable); @Override DoubleColumn fillWith(final DoubleSupplier supplier); @Override DoubleColumn fillWith(double d); @Override LongColumn asLongColumn(); @Override IntColumn asIntColumn(); @Override ShortColumn asShortColumn(); @Override FloatColumn asFloatColumn();  }
@Test public void sortAscending() { DoubleColumn col = DoubleColumn.create("test", 3.0, 1.0, 2.0, 4.0); col.sortAscending(); assertArrayEquals(new double[] {1.0, 2.0, 3.0, 4.0}, col.asDoubleArray()); }