Typescript Array Sort By Two Properties Of Electromagnetic Waves