What does "bailie" mean?

Bailie: An officer in Scotland, whose office formerly corresponded to that of sheriff, but now corresponds to that of an English alderman.

Sources