sort diffs with a preference towards same index as origin