Ancestor by ancestor, as given in the biblical genealogies.
Who appears in the story just before and after this person (Patriarchs).
Gn 5:32After Noah was 500 years old, he had three sons, Shem, Ham, and Japheth.
Gn 7:13On that same day Noah and his wife went into the boat with their three sons, Shem, Ham, and Japheth, and their wives.
Gn 9:18The sons of Noah who went out of the boat were Shem, Ham, and Japheth. (Ham was the father of Canaan.)
Gn 9:22When Ham, the father of Canaan, saw that his father was naked, he went out and told his two brothers.
Gn 10:1These are the descendants of Noah's sons, Shem, Ham, and Japheth. These three had sons after the flood.
People, family relations and passages: TIPNR, STEPBible (Tyndale House, Cambridge), CC BY 4.0. People in the deuterocanonical books: MARBLE names list, United Bible Societies (UBS).