"按直系关系" can be translated as "by direct lineage" or "according to direct familial relations" in English.
"By direct lineage" emphasizes the direct bloodline or ancestral connection.
"According to direct familial relations" is more explicit in stating that the classification or arrangement is based on the immediate family ties.
Choose the phrase that best fits the context of your sentence.