W3cubDocs

/Kotlin

reversed

fun <T> Comparator<T>.reversed(): Comparator<T>

Platform and version requirements: JS

Returns a comparator that imposes the reverse ordering of this comparator.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.comparisons/reversed.html