Skip to content

Commit

Permalink
Use sort order for tabs to optionally allow sorting tabs this way. Cl…
Browse files Browse the repository at this point in the history
…oses #3.
  • Loading branch information
fnuecke committed Nov 16, 2023
1 parent 512c9e9 commit 298f7f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/src/main/java/li/cil/manual/api/prefab/Manual.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public Iterable<Tab> getTabs() {
final Registrar<Tab> registry = REGISTRIES.get().get(Constants.TAB_REGISTRY);
return StreamSupport.stream(registry.spliterator(), false).
filter(tab -> matches(registry, tab)).
sorted().
collect(Collectors.toList());
}

Expand Down

0 comments on commit 298f7f0

Please sign in to comment.