javascripttypescriptmap
typescript
function sortMapBasedOnValue(m:Map<number,number>):Map<number,number>{
   return new Map([...m].sort((k,v)=>k[1]-v[1]))
}
Follow me on Twitter! It's free!