Homophones are words that sound alike, may have the same spelling, but differ in meaning.
Ordinance means order, regulation, command, law, etc.
Ordnance means weapons, arms, artillery, armaments, etc.
Violation of traffic ordinances is a punishable act.
Ordnance factories cater to the demands of the Army, Air Force, and Naval establishments.