The sheriff established order in that town.

Literal

Sheriff [topic-は], that town [gen-の] order [obj-を] established.

保安官 ('sheriff') is a foreign-concept word — there's no native Japanese sheriff. It's assembled from 保安 ('public safety, security') + 官 ('official'), and is used mostly in translation contexts or Western/historical fiction. 秩序 ('order, discipline') and 確立する ('establish firmly') are formal Sino-Japanese vocabulary.