fixed the sorting by date ascending