Js Sort Array By Two Properties Of Ionic Compounds