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

Available on Map<K, V>, provided by the SortMap extension

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

Available on Map<K, V>, provided by the SortMap extension

Sorts a map of type Map<K, V> (in place) using the map values.