Proble 12  updates & improvements

//12. Given an array of objects and the name of a key, return the array
sorted by the value of that key in each
//of the objects: "a" + [{a:2},{a:3},{a:1}] → [{a:1},{a:2},{a:3}].

Update