My typescript dictionary is filled with code.
var dictionaryOfScores: {[id: string]: number } = {};
Now that it's populated, I want to sort it based on the value (number).
Since the dictionary could be quite large, I'm looking for an in-place solution.
Although there is a typescript-collections package available, I prefer a simple method without adding extra libraries.
The Sort JavaScript object by key explains a javascript approach to sorting TypeScript objects, but it creates a copy and doesn't specifically mention dictionaries.