Using Reduce Method Javascript Array Sort Objects According To Size