Halachah · Shulchan Aruch

Shulchan Arukh, Yoreh De'ah 354/שולחן ערוך·יורה דעה שנ״ד

א
עיר שיש בה שני מתים איזה קודם. ובו סעיף אחד:
עיר שיש בה שני מתים מוציאין את הראשון ואח"כ מוציאין השני ואם היו מלינים הראשון מוציאין השני חכם ות"ח מוציאין החכם ת"ח ועם הארץ מוציאין ת"ח איש ואשה מוציאין האשה מפני שקרובה לבי' הניוול הוציאו הראשון וקברוהו אין עומדין עליו בשורה ואין אומרים עליו ברכת אבלים ולא תנחומי אבלים עד שיוציאו השני הוציאו השני וקברוהו באים ועומדים בשורה מנחמים ופוטרים את הרבים ואין מנחמים שני אבלים כאחד אלא אם כן היה כבודם שוה וקילוסן שוה:
1
A city wherein two corpses are [awaiting burial], one brings out the first one1 and then one brings out the second one.2 If one kept over3 the first [corpse], one brings out the second one. [If] a Hakam and a Talmid5 Hakam4 [are awaiting burial], one brings out [first] the Hakam; [if] a Talmid Hakam and an Am Ha-arez,4 one brings out [first] the Talmid Hakam;6 [if] a man and a woman, one brings out the woman [first],7 for she is prone8 [to be subjected] to pudendal9 disgrace. [After] one brought out the first one and buried him, one does not stand in the line [of comforters] for him, nor does one recite the mourners' benediction for him, nor does one offer condolence to the mourners10 until one brings out the second one. [After] one has brought out the second one and buried him, comforters come and stand in the line11 and [then the mourners] give leave of departure to the many [comforters].12 Two [separate] mourners are not comforted simultaneously13 unless their [degree] of honour and praise is equal.14