Bug fix for date sorting error.
filtering underconstruction. main logic is ok.