Unless an ordinance expressly provides differently, any portion of an ordinance or the application thereof to any person or circumstance found to be invalid by a court shall not affect the remaining portions of the ordinance if they can be given effect without the invalid portion and they are not determined by the court to be inoperable.