sort by date and not by string