Javascript Sort Array Of Objects By Two Open