Javascript Sort Array Objects By Properties Of Exponents