Here is a goal: To prevent white clothes from turning pink, or other colors, in the wash,

Which way makes more sense to accomplish this goal?
sort and wash clothing, so that red and other colors are not washed with the whites.