Double posets and real invariant varieties