How to Sort an Array of Objects by a String Property in JavaScript | CodeTrail