Any sexually oriented business that is in violation of subsection (h)(1) or any other location requirement of any other city ordinance, that was legally operating on the effective date of adoption or amendment of such ordinance or regulation, shall be deemed a nonconforming use, except if two or more sexually oriented businesses are within 1,000 feet of each other, or are located in the same building or structure, and otherwise in a permissible location, the sexually oriented business that was first established and continually operating as a sexually oriented business at a particular location (regardless of which business was first located in the city), even if operating under a different name, ownership, or selling different sexually oriented merchandise or services, is the conforming use and the later-established business is nonconforming. The provisions of this subsection shall also apply to legally operating sexually oriented businesses made nonconforming by annexation into the city limits.