@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 shouldSortBools() {
    final List<Boolean> input = Arrays.asList(true, false, false);
    final List<Boolean> output = udf.arraySortDefault(input);
    assertThat(output, contains(Boolean.FALSE, Boolean.FALSE, Boolean.TRUE));
  }