Ordered and partially-ordered variants of Ramsey's theorem