ldifsort - sort LDIF on distinguished name
ldifsort [—reverse-sort] [FILE …]
Standard input is read if no FILE is given.
Results are written to standard output.
This program sorts standard input, or one or more files, on DN. Comments are stripped from the output.
Output the sorted results in reverse order.
No support is provided for base-64 encoded DNs (but base-64 encoded attribute values should be handled correctly).
ldifdiff(1), RFC 2849