@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 shouldSortBigInts() {
    final List<Long> input = Arrays.asList(1L, 3L, -2L);
    final List<Long> output = udf.arraySortDefault(input);
    assertThat(output, contains(-2L, 1L, 3L));
  }