Enable record sorting by date inside pdf model