I want to use lodash to convert an object like this:
var a = {1:'a', 3:'b', 2:'c'};
into a sorted array of values based on the keys of the object like:
var result = ['a','c','b'];
I know I can do this:
var keyRef = Object.keys(a).sort();
var result = keyRef.map(v => a[v]);
But is this way optimized - is there any function in lodash which is more optimized for this??