Typescript Sort Array Of Objects By N