summaryrefslogtreecommitdiff
path: root/src/main/java/io/trygvis/rules/acme/AcmeIo.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/trygvis/rules/acme/AcmeIo.java')
-rw-r--r--src/main/java/io/trygvis/rules/acme/AcmeIo.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/io/trygvis/rules/acme/AcmeIo.java b/src/main/java/io/trygvis/rules/acme/AcmeIo.java
index 0bd0f1e..498a4a6 100644
--- a/src/main/java/io/trygvis/rules/acme/AcmeIo.java
+++ b/src/main/java/io/trygvis/rules/acme/AcmeIo.java
@@ -57,6 +57,7 @@ public class AcmeIo {
dump(s, factHandles, (o) -> true);
}
+ // This should just sort by all getters instead.
static class FactCollection<T> {
public final Class<T> type;
public final List<T> values;
@@ -74,6 +75,10 @@ public class AcmeIo {
}
if (comparator == null) {
+ comparator = comparable(type, "fqdn");
+ }
+
+ if (comparator == null) {
comparator = Comparator.comparingInt(System::identityHashCode);
}