Sorrow to hope

How does sorrow help our hope?