I think these are correct.
1 I have worked in this job longer than I have ever worked in any other job.
2 I have worked in this job longer than I had ever worked in any other job before.
3 I have worked in this job longer than I ever worked in any other job before.
I think this wrong
4 I have worked in this job longer than I have ever worked in any other job before.
Do you agree?