fix(api): sort libraries case insensitive

This commit is contained in:
Gauthier Roebroeck 2020-06-19 17:25:43 +08:00
parent 8b593a66dd
commit 1650aec75b

View file

@ -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(