Cook thoroughly the sugar, pineapple, flour, vinegar, egg. Cool. Mix with apples and Cool Whip and 1/2 the nuts. Top with the other half of the peanuts.
Mix flour, sugar, beaten egg, ... Cook until thick. Cool. Peel and cut up apples. Pour cooked mixture over ... Fold in Cool Whip and peanuts. Keep chilled.