As far as I know "ordinance" is an official (usually written) order. In terms of its importance it's between an order and a law, I think. An ordinance is usually issued by town/city/park/community authorities to enforce certain patterns of behaviour.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.