Typescript Call Variable Javascript Array Sort