diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/rest/LibraryController.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/rest/LibraryController.kt index f582fe327..017d0fc6b 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/rest/LibraryController.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/rest/LibraryController.kt @@ -47,7 +47,7 @@ class LibraryController( libraryRepository.findAll() } else { libraryRepository.findAllById(principal.user.sharedLibrariesIds) - }.sortedBy { it.name }.map { it.toDto(includeRoot = principal.user.roleAdmin) } + }.sortedBy { it.name.toLowerCase() }.map { it.toDto(includeRoot = principal.user.roleAdmin) } @GetMapping("{id}") fun getOne(