Combine mayonnaise, sugar, apple cider vinegar, grated onion, and raisins in the small bowl. Toss with the broccoli and bacon in the large bowl until all the broccoli is coated. Marinate overnight in the refrigerator. Sprinkle on the sunflower seeds when ready to serve.