In a 12-inch skillet, saute the shallots and garlic in the butter over medium heat for 1 minute, until golden brown. Add the shredded cabbage. Add the wine to deglaze the pan, loosening any browned bits on the bottom of the pan with a wooden spoon. Stir in the vinegar and sugar. Season with salt and pepper to taste. Increase the heat to high and bring to a boil, stirring constantly to prevent the sugar from burning. Reduce the heat and simmer about 10 minutes, until the liquid is reduced by 3/4.