sortMapByValue

fun <K, V : Comparable<V>> Map<K, V>.sortMapByValue(): Map<K, V>