Do you know that sorrow can show us many things in life we would never learn otherwise? The difference between shallow happiness and deep sustaining joy comes out of sorrow.
examples in Nehimiah and Esther
The realization of what was (our sorrow) to what is (God), and what will be (our hope) is the ingredients for joy.
God in the sorrow = joy through our sorrow.