Wild Magic Surges may only trigger after casting a sorcerer spell of 1st level or higher. By default, sorcerers cannot cast spells as rituals, but if they take the Ritual Caster feat, they can (for the list of a chosen class, including sorcerer).
There are 4 ritual spells on the sorcerer spell list: Detect Magic, Comprehend Languages, Water Breathing, and Water Walk.
Provided that a Wild Magic sorcerer takes the Ritual Caster feat with the sorcerer class option, can they then trigger Wild Magic Surges upon casting any of these 4 spells as a ritual?