According to the multitude of my sorrows in my heart, thy comforts have given joy to my soul.
According to the multitude of my sorrows in my heart, your consolations have given joy to my soul.