The receiving line order can vary a bit depending on each person's age and family structure at the time of death.
Typically, the spouse is first, accompanied by children. Parents and siblings would be next, followed by extended family in relatively descending order of age (grandparents, uncles, aunts, cousins, etc).
Learn more: Funeral Etiquette for Immediate Family