orangy
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)
}