One of the reasons Courageous was sunk by a U-boat was that the KM had broken the British codes, and so had a fair idea of where she would be.
Without that, she possibly lives.
As for 'sweeping in front of a force', that isn't a WW2 doctrine for the very good reason it doesn't work with the available tech.
First the sweeping force has to be faster than the convoy. As WW2 sonar was pretty much limited to 18 kt, that makes a slow convoy.
Second the sonar available had a reliable range of 1-2 miles, 1 mile is dependable, 2 depends so much on the conditions.
Work out how many ships you need to sweep.
Now later on, it was sort of done (but with a lot of differences)
The sweeping was usually either by plane (which had the speed to check and re-check a wider area), or the escort doing a sprint and search - later on, doing a sprint and drift while listening.
Without that, she possibly lives.
As for 'sweeping in front of a force', that isn't a WW2 doctrine for the very good reason it doesn't work with the available tech.
First the sweeping force has to be faster than the convoy. As WW2 sonar was pretty much limited to 18 kt, that makes a slow convoy.
Second the sonar available had a reliable range of 1-2 miles, 1 mile is dependable, 2 depends so much on the conditions.
Work out how many ships you need to sweep.
Now later on, it was sort of done (but with a lot of differences)
The sweeping was usually either by plane (which had the speed to check and re-check a wider area), or the escort doing a sprint and search - later on, doing a sprint and drift while listening.