Sort the output of the --export command.