Sort the output of the "list" command.