Sort a Javascript Map by value numerically

If kv is a Javascript Map object, how can I sort it by its value numerically?

This is, for example, a common pattern when kv is a counter, and we need to see the top-n items with the highest count.

This is distinct from Is it possible to sort a ES6 map object? , which is lexical sort.