From 298f7f07353d26c876a7a3bbc45fa04caf00aa5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Thu, 16 Nov 2023 22:54:08 +0100 Subject: [PATCH] Use sort order for tabs to optionally allow sorting tabs this way. Closes #3. --- common/src/main/java/li/cil/manual/api/prefab/Manual.java | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/main/java/li/cil/manual/api/prefab/Manual.java b/common/src/main/java/li/cil/manual/api/prefab/Manual.java index 9d9ad28..e6a9c7e 100644 --- a/common/src/main/java/li/cil/manual/api/prefab/Manual.java +++ b/common/src/main/java/li/cil/manual/api/prefab/Manual.java @@ -101,6 +101,7 @@ public Iterable getTabs() { final Registrar registry = REGISTRIES.get().get(Constants.TAB_REGISTRY); return StreamSupport.stream(registry.spliterator(), false). filter(tab -> matches(registry, tab)). + sorted(). collect(Collectors.toList()); }