A

Admin • 828.03K Points
Coach

Q. Which method is used to sort a list in Kotlin?

  • (A) arrange()
  • (B) orderBy()
  • (C) sort()
  • (D) organize()
  • Correct Answer - Option(C)
  • Views: 8
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin
The 'sort()' function sorts a mutable list in Kotlin.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.