Order Analysis, Deep Learning, and Connections to Optimization