``` lists.stream().collect(collectingAndThen(toCollection(() -> new TreeSet<>(Comparator.comparing(o -> Rmap.getStr(o,"orderId")))), ArrayList::new)); ```