Onions can be made up to four days ahead and kept chilled, covered. Bring to room temperature before serving.
Sweet-and-Sour Onions recipe