diff --git a/li.strolch.agent/src/main/java/li/strolch/search/RootElementSearchResult.java b/li.strolch.agent/src/main/java/li/strolch/search/RootElementSearchResult.java index 9728d9811..31ae91300 100644 --- a/li.strolch.agent/src/main/java/li/strolch/search/RootElementSearchResult.java +++ b/li.strolch.agent/src/main/java/li/strolch/search/RootElementSearchResult.java @@ -134,6 +134,19 @@ public class RootElementSearchResult extends Searc return this; } + /** + * appends a comparator to this stream + * + * @param comparator + * the comparator to append to the stream + * + * @return this for chaining + */ + public RootElementSearchResult orderBy(Comparator comparator) { + super.orderBy(comparator); + return this; + } + /** *

Appends a map to the stream which clones the elements in the stream with their version by calling {@link * StrolchRootElement#getClone(boolean)}