private List<DocRef> getSortedDocRefs(final Supplier<List<DocRef>> docRefsSupplier) {
        return docRefsSupplier.get()
                .stream()
                .sorted(Comparator.comparing(DocRef::getName))
                .collect(Collectors.toList());
    }
Script to create some base data for testing.
stroom-app/src/test/java/stroom/test/SetupSampleDataBean.java