Analysis and Optimization Order By Date