sortMapEntriesByValue<K, V> function
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);