Input:
var arr = [{ fName: "a" }, { fName: 1 }, { fName: "A" }];
Expected Output
var arr = [{ fName: 1 }, { fName: "A" },{ fName: "a" }];
supposed key fName is a employee name and we want to sort this object [1,'A','a'] like this but in object form.
how to do this?
Array.prototype.sort()