Sort directives alphabetically.