Javascript Sort Array Of Objects By Two Properties Of Liquid