Finely dice onion, sauté until clear. Combine all other ingredients except sugar. Cook down till thickened. Add sugar and carefully simmer until you have the correct consistency.