Arrange the lines for method

Report a typo

Arrange the lines in the correct sequence so that the code compiles without errors.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                val sortedByLengthDescending = list.sortedWith(object : Comparator<String> {
              
                })
              
                }
              
                fun main() {
              
                }
              
                println(sortedByLengthDescending)
              
                val list = listOf("apple", "banana", "cherry", "date")
              
                override fun compare(s1: String, s2: String): Int {
              
                return s2.length.compareTo(s1.length)
              
___

Create a free account to access the full topic