a8n: Use more robust sorting of replacer service JSON lines
Created by: mrnugget
This is a follow-up to #6912 that implements the more stable sorting as suggested in this comment: https://github.com/sourcegraph/sourcegraph/pull/6912#discussion_r352142755