diff --git a/src/main/kotlin/org/jitsi/recorder/Main.kt b/src/main/kotlin/org/jitsi/recorder/Main.kt index 9917c53..6d7151b 100644 --- a/src/main/kotlin/org/jitsi/recorder/Main.kt +++ b/src/main/kotlin/org/jitsi/recorder/Main.kt @@ -51,7 +51,7 @@ fun Application.module() { routing { get("/metrics") { val (metrics, contentType) = metrics.getMetrics( - parseHeaderValue(call.request.headers["Accept"]).sortedBy { it.quality }.map { it.value } + parseHeaderValue(call.request.headers["Accept"]).sortedByDescending { it.quality }.map { it.value } ) call.respondText(metrics, contentType = ContentType.parse(contentType)) }