Order lives in one partition

How the key picks a partition and keeps its records in order there, and what happens to that order when a topic gets more partitions.