sortMapEntriesByValue<K, V> function

Map<K, V> sortMapEntriesByValue<K, V>(
  1. Map<K, V> map, [
  2. bool reversed = false
])

Returns a Map sorted by keys.

Implementation

Map<K, V> sortMapEntriesByValue<K, V>(Map<K, V> map, [bool reversed = false]) =>
    sortMapEntries(
        map, (a, b) => parseComparable(a.value)!.compareTo(b.value), reversed);