How is seniority determined?

It is said that since the Qin Dynasty, surnames and surnames have been unified. For large clans, ranking first became popular, and in the Wei and Jin Dynasties, seniority began to appear. Especially since the late Song Dynasty, the custom of organizing and compiling family trees among feudal families, large and small, who lived together became very popular. A generation character is a restriction on the characters used in the names of people of each generation. The generation style of the Kong family started with Sihui, who stipulated that the next generation should all use the word "ke". The following generations use their names in turn: Xi, Yan, Gong, Yan, Cheng, Hong, Wen, Zhen, Shang, Yan, Xing, Yu, Chuan, Ji, Guang, Zhao, Xian, Qing, Fan, and Detailed , Ling, De, Wei, Chui, You, Qin, Shao, Nian, Xian, Yang and so on.