Using Reduce Method Javascript Array Sort Numerically