Halve tomatoes. Melt the butter with the sugar in a pan. Spread the tomatoes in the pan with the cut surface facing down and fry over medium heat (do not stir). Season with salt, pepper and sambal oelek. Briefly stir in the garlic and basil. Take the pan off the stove. Mix in the pasta.