Sort directives lines.