I have some code that has populated a typescript dictionary.
var dictionaryOfScores: {[id: string]: number } = {};
Now that I have it I would like to sort it by the value (the number).
This dictionary could be quite large so I am hoping there is a solution to handle it in-place.
I've seen that there is a typescript-collections package that could fit my needs but I'm hoping there is a simple solution that doesn't require me to include another library.
Sort JavaScript object by key describes a plain javascript method that could be used to sort this TypeScript object, but it makes a copy, and it doesn't specifically address the TypeScript dictionary.