If you want to be able to service (clean) your check valve then the ball valve needs to be after it to prevent the tank water from back-siphoning when the check valve is disassembled.
However, many would recommend not using or relying upon a check valve since even the best ones are subject to failure. Just make sure your returns are close to the DT surface so when the return pump is switched off only a limited amount of water drains to your sump, i.e., not enough to cause an overflow with plenty of margin. Some even drill a small hole in the return line just above the surface water to break the syphon.