I would just use SAM conversion to create Comparat...
# announcements
o
I would just use SAM conversion to create Comparator
Copy code
packets.sortedWith(
        Comparator { a, b ->
          val first = a.qualifiedName ?: ""
          val second = b.qualifiedName ?: ""
          val compare = String.CASE_INSENSITIVE_ORDER.compare(first, second)
          if (compare != 0) compare else first.compareTo(second)
        }