sort interactions before writing to file, publish to sonatype