dict in javascript sorted by value code example
Example 1: python get dictionary keys sorted by value
sorted(A, key=A.get)
Example 2: javascript sort map by value
var map = new Map();
map.set('2-1', "foo");
map.set('0-1', "bar");
map.set('3-1', "baz");
var mapAsc = new Map([...map.entries()].sort());
console.log(mapAsc)