SortMap<K extends Object, V extends Object> extension

Extension providing the methods sortByKey and sortByValue for sorting a Map<K extends Object, V extends Object> in place.

on

Methods

sortByKey([Comparator<K>? comparator]) → void
Sorts a map of type Map<K, V> (in place) using the map keys.
sortByValue([Comparator<V>? comparator]) → void
Sorts a map of type Map<K, V> (in place) using the map values.