public static <T> List<LocalProperty<T>> sorted(Collection<T> columns, SortOrder order)
    {
        return columns.stream().map(column -> new SortingProperty<>(column, order)).collect(toImmutableList());
    }
@Test
    public void testDifferentSortOrders()
    {
        List<LocalProperty<String>> actual = builder()
                .sorted("a", SortOrder.ASC_NULLS_FIRST)
                .build();

        assertMatch(
                actual,
                builder()
                        .sorted("a", SortOrder.ASC_NULLS_LAST)
                        .build(),
                Optional.of(sorted("a", SortOrder.ASC_NULLS_LAST)));
    }