that was the regulation with womens hair ; it was allowed to be almost any length , but in order to maintain order and formality , it had to be arranged in a style that would not permit it to touch the collar .