why do planes have winglets when you can sweep the wings?

what’s the point and difference in performance?