Ensure casing is ignored when sorting input list

This commit is contained in:
2025-06-09 10:53:22 +02:00
parent b9bf2f1d38
commit a4b88f6dfd

View File

@@ -291,7 +291,7 @@ public class AssetService {
entries = repository.findAll(); entries = repository.findAll();
} }
Set<String> inputList = new TreeSet<>(); var inputList = new TreeSet<String>(Comparator.comparing(String::toLowerCase));
for (var entry : entries) { for (var entry : entries) {
String entryType; String entryType;
if (entry instanceof Asset asset) { if (entry instanceof Asset asset) {