Fix datepicker functionality. Revert back to old lambda method for sorting by date.