@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 shouldSortStrings() {
    final List<String> input = Arrays.asList("foo", "food", "bar");
    final List<String> output = udf.arraySortDefault(input);
    assertThat(output, contains("bar", "foo", "food"));
  }