sortedByLaw

inline fun <T, R : Comparable<R>> Collection<T>.sortedByLaw(crossinline selector: (T) -> R?): List<T>