How does the sentence end?

Patricia's essay was more in depth than Elena's essay, so
Elena had the shorter essay in the end.