The police job in the history of modern republics was never to maintain "public order", unless by that you mean preventing disruption of existing systems of privilege. I can only recommend reading Michel Foucault "Discipline and Punish" about the society of control, and the roles of the police and judicial system.