sort dates properly in table view

Reviewers: usmanm, marcua

Reviewed By: usmanm

Differential Revision: http://phabricator.locu.com/D2987