New York City has made vast “progress” in rolling back school discipline — which is a loss for everyone except the ideologues who demanded it.

To be fair, the decline began years before Mayor de Blasio took over: Political pressure had already brought new, softer discipline codes in the Bloomberg era. According to a new report out of John Jay College, suspensions peaked at 63,635 in the 2010-11 school year before falling for six straight years, for a total drop of nearly 50 percent.

Behind the great ease-off is the claim that suspensions hamper learning and create a “school-to-prison pipeline.”

But teachers and administrators say that the softer approach has meant more chaotic classrooms and less learning. Parents seem to agree: State Sen. Leroy Comrie (D-Queens) told state education officials last month that his middle-class constituents are fleeing district schools because disruptive kids aren’t getting disciplined.

Yes, the John Jay analysis found that black students (followed by Hispanics) had the highest suspension rates and were more likely to have multiple suspensions. But that simply isn’t evidence of racism: There’s a host of reasons why that could be the result of race-neutral policies, and it’s beyond ridiculous to think that racists are calling the shots in New York City schools in 2019.

All the talk of racial “disparate impact” ignores the fact that it’s largely children of the same race who suffer when students get to keep on disrupting class.

If a school lacks basic order, kids can’t learn. And if kids can’t learn, their parents will enroll them someplace else.

Bean-counting social-justice warriors may be perfectly happy to drive the middle class out of the city’s schools (along with as much of the working class as can find an escape). But anyone who truly believes in public education should be demanding an end to this madness.