How to avoid onion sweetening when sautéing?
From The Times of India:

Add a hint of tanginess:
Adding lime juice can to your dish can balance out the sweetness. In case, you don't want too much of tanginess in the dish you can also add vinegar white wine vinegar, red wine vinegar, balsamic vinegar.