sort ByDates not finishes