The primary function of law is to provide a framework for social order.