Using Reduce Method Javascript Array Sort Ascending