Place half the cranberries and half the orange slices in food processor container. Process until mixture is evenly chopped. Transfer to a bowl. Repeat with remaining cranberries and orange slices. Stir in sugar. If using, add walnuts. Store in refrigerator or freezer. This dish is better made the day before you serve it.