Place the sugar, mustard, salt, vinegar and onion in a blender container and process on high until well mixed. Add the oil and mayonnaise and process until mixed. Pour over the cabbage mixture and stir. Let sit at least one hour or overnight.