Is it possible to sort the entries of a es6 map object?
var map = new Map(); map.set(\'2-1\', foo); map.set(\'0-1\', bar);
results in:
You can convert to an array and call array soring methods on it:
[...map].sort(/* etc */);