Returns an array of entries from a map, sorted by a property of the value
cosnt m = new Map();m.set(`4491`, { name: `Bob` });m.set(`2319`, { name: `Alice` });const sorted = Maps.sortByValue(m, `name`); Copy
cosnt m = new Map();m.set(`4491`, { name: `Bob` });m.set(`2319`, { name: `Alice` });const sorted = Maps.sortByValue(m, `name`);
Map to sort
Property of value
Optional
Comparer. If unspecified, uses a default.
Returns an array of entries from a map, sorted by a property of the value