a8n: Sort JSON lines returned by replacer service
Created by: mrnugget
This fixes #6910 (closed) by sorting the diffs according to their filenames before putting them in the database. The exact order is actually not that important. It's important that the order is stable and doesn't break our E2E tests.