Typescript Array Sort By Two Columns In Python