This task can be done the other way around as well. You can choose the brightest T-shirt, its color is the most intense, making it the most visible. Place this T-shirt on the right.
Now, select the brightest one among the remaining T-shirts. Place it to the left of the last one.
From the last two T-shirts, you can choose the most faded, the least noticeable one. Put it in the first place. The remaining one will go into the last empty cell.