Illustrator

Change the stacking order of appearance attributes

 Drag an appearance attribute up or down in the Appearance panel. (If necessary, click the toggle triangle next to an item to display its contents.) When the outline of the appearance attribute you are dragging appears in the desired position, release the mouse button.
Pointillize effect applied to stroke (top) compared to same effect moved to fill (bottom)