@Udf
  public <T extends Comparable<? super T>> List<T> arraySortDefault(@UdfParameter(
      description = "The array to sort") final List<T> input) {
    return arraySortWithDirection(input, "ASC");
  }
@Test
  public void shouldSortInts() {
    final List<Integer> input = Arrays.asList(1, 3, -2);
    final List<Integer> output = udf.arraySortDefault(input);
    assertThat(output, contains(-2, 1, 3));
  }