בבא בתרא ח:ב · Bava Batra 8:2

סֵדֶר נְחָלוֹת כָּךְ הוּא, (במדבר כז) אִישׁ כִּי יָמוּת וּבֵן אֵין לוֹ, וְהַעֲבַרְתֶּם אֶת נַחֲלָתוֹ לְבִתּוֹ, בֵּן קוֹדֵם לַבַּת, וְכָל יוֹצְאֵי יְרֵכוֹ שֶׁל בֵּן קוֹדְמִין לַבַּת. בַּת קוֹדֶמֶת לָאַחִין. יוֹצְאֵי יְרֵכָהּ שֶׁל בַּת, קוֹדְמִין לָאַחִין. אַחִין קוֹדְמִין לַאֲחֵי הָאָב. יוֹצְאֵי יְרֵכָן שֶׁל אַחִין, קוֹדְמִין לַאֲחֵי הָאָב. זֶה הַכְּלָל, כָּל הַקּוֹדֵם בַּנַּחֲלָה, יוֹצְאֵי יְרֵכוֹ קוֹדְמִין. וְהָאָב קוֹדֵם לְכָל יוֹצְאֵי יְרֵכוֹ:
The order of precedence with regard to inheritances is this: The verse states: “If a man dies, and has no son, then you shall pass his inheritance to his daughter” (Numbers 27:8). This teaches that a son precedes a daughter. Additionally, all descendants of a son precede a daughter. A daughter precedes the brothers of the deceased. Additionally, the descendants of a daughter precede the brothers of the deceased. Brothers of the deceased precede the uncles of the deceased. Additionally, the descendants of the brothers precede the uncles. This is the principle: Concerning anyone who precedes another with regard to inheritance, his descendants precede the other as well, and a father who inherits precedes all of his descendants.

Word-by-word Breakdown (מילים ושרשים)

סֵדֶר → The order [ס - ד - ר]נְחָלוֹת → of inheritances [נ - ח - ל]כָּךְ → is this הוּא → it is במדבר → Numbers [ד - ב - ר]כז → 27 אִישׁ → If a man כִּי → when יָמוּת → dies [מ - ו - ת]וּבֵן → and a son [ב - נ - ה]אֵין → has not [א - י - ן]לוֹ → to him וְהַעֲבַרְתֶּם → then you shall pass [ע - ב - ר]אֶת → [direct object marker] נַחֲלָתוֹ → his inheritance [נ - ח - ל]לְבִתּוֹ → to his daughter [ב - נ - ה]בֵּן → A son [ב - נ - ה]קוֹדֵם → precedes [ק - ד - מ]לַבַּת → a daughter [ב - נ - ה]וְכָל → and all [כ - ל - ל]יוֹצְאֵי → descendants of [י - צ - א]יְרֵכוֹ → the thigh of [י - ר - ך]שֶׁל → of בֵּן → a son [ב - נ - ה]קוֹדְמִין → precede [ק - ד - מ]לַבַּת → a daughter [ב - נ - ה]בַּת → A daughter [ב - נ - ה]קוֹדֶמֶת → precedes [ק - ד - מ]לָאַחִין → the brothers [א - ח - ה]יוֹצְאֵי → descendants of [י - צ - א]יְרֵכָהּ → her thigh [י - ר - ך]שֶׁל → of בַּת → a daughter [ב - נ - ה]קוֹדְמִין → precede [ק - ד - מ]לָאַחִין → the brothers [א - ח - ה]