Adding the orderby dropdown.

Also setup post data so that we can use the modified time in the loop.