Javascript Return Two Values Javascript Array Sort By Property