What is the primary function of wing sweep in high-speed aircraft?

Explanation:

Wing sweep delays shock formation, reducing wave drag.