A windsock must never be flown above the U.S. flag. The U.S. Flag Code (4 U.S.C. §7) states: "No other flag or pennant should be placed above or, if on the same level, to the right of the flag of the United States of America."
On a single pole: U.S. flag at top, then state/organizational flags, then windsock (if any). On separate poles: U.S. flag at highest point or center/highest of group. Windsocks are utility devices (aviation, chemical plants), not flags, but the code's principle of prominence applies.
Violation is not criminal but reflects disrespect. At airports, the windsock is on its own mast away from the flagpole; the flagpole is taller or positioned for superior prominence.