sorted Insert
inline fun <T, K : Comparable<K>> MutableList<T>.sortedInsert(item: T, crossinline selector: (T) -> K?)
Inserts a new element into a sorted list while maintaining the order.
Inserts a new element into a sorted list while maintaining the order.