I have always had my doubts about uniform. When I was at school I became an expert in undermining the uniform code, based on statements made by our headmistress. She was always preaching economy and austerity, so I made a big thing of repairing my uniform to make it last longer, so my uniform always had repairs and buttons, not entirely straight. And of course, once off school premises, hitched the skirt up and loosened the tie.
At one point we lived near two schools one with uniform and one without and I always commented on how scruffy those in uniform looked compared with those from the school without uniform.
Back in the 1970s, my children's school did not have a uniform but had a dress code. No T shirts with logos, pictures or texts, no jeans and no trainers. That code wouldn't be appropriate in the 2020s, but I am sure something similar could be drawn up, so that children learn about dressing appropriately, all nowadays, it seems, anything goes.